
<template>
	<div class="index">

		<div class="center">
			<left></left>
			<div class="right">
          <top></top>
          <div class="hei10"></div>

				<div class="o_ul">
					<router-link class="o_li acts bgw" to="/order_question">我的订单</router-link>
					<router-link class="o_li" v-if="l04" to="/order_question/orderOther">分销商发展订单</router-link>
					<router-link class="o_li" to="/order_question/old_dingdan">历史订单查询</router-link>
					<router-link class="o_li" v-if="l04" to="/order_question/old_Other">分销商发展历史订单</router-link>
				</div>
				<div class="con">
          <!-- <div style="padding: 10px 20px; background: #EEF7FF; color:#565656; font-size: 14px;">
            新的订单来源搜索可显著提升检索速度，支持多来源检索，但是需要<span style="color: #077ECE; cursor: pointer; font-weight: bold;" @click="goid('/setup/dingdanlaiyuan/dingdanlaiyuan')"> 前往设置</span>——订单来源管理处维护来源，原模糊检索占用性能过高导致检索速度慢将于本月中旬下架。
          </div> -->
					<el-form ref="form" @submit.native.prevent :model="form" label-width="90px" class="w180 sousuo2" style="padding:6px 20px 20px 20px;" >
						<div class="searchflex" style="margin-bottom: 20px;">
              <el-form-item label="渠道分类" class="bgh">
                <el-select  v-model="form.source_type" @change="changelaiyuan" multiple collapse-tags clearable filterable placeholder="渠道分类">
                  <el-option :label="item.channel_name" :value="item.id" v-for="(item,index) in source_types" :key="index"></el-option>
                </el-select>
              </el-form-item>

							<el-form-item label="订单来源" class="bgh">
                <el-select clearable v-model="form.sources" :reserve-keyword="true" popper-class="p50" multiple collapse-tags filterable clearable  placeholder="输入订单来源">
                  <el-option :label="item.source_name" :value="item.source_name" v-for="(item,index) in laiyuans" :key="item.id"></el-option>
                  <div @click="goid('/setup/dingdanlaiyuan/dingdanlaiyuan')" style="width: 100%; padding: 10px 0; font-size: 12px; box-sizing: border-box; position: absolute; bottom: 0; background: #f4f4f4; display: flex; cursor: pointer; justify-content: center; color: #409eff; left: 0;" >
                    未找到来源？点击前往配置
                  </div>
                </el-select>
							</el-form-item>

              <el-form-item label="二级来源" class="bgh">
                <div style="position: absolute; right: 10px; z-index: 1999;">
                  <el-tooltip placement="top">
                    <div slot="content">
                      对同一个店铺的不同销售渠道进行二级来源区分，便于统计绩效，<br/>
                      例如：抖店XXX直播间销售，有赞商家小程序销售，二级来源可在订单列表的订单来源后面查看，<br/>
                      为了方便记忆，您可以在右上角设置处重命名二级来源名称
                    </div>
                    <i class="el-icon-question" style="color:#979797; font-size: 18px;"></i>
                  </el-tooltip>
                </div>
                <el-input v-model="form.sub_source" placeholder="二级来源"></el-input>
              </el-form-item>



              <el-form-item label="商品编码" style="position: relative;" class="bgh">
              	<!-- <el-input v-model="form.good_sku"></el-input> -->
              	<el-select v-model="form.pages_ids"  :reserve-keyword="true" clearable multiple collapse-tags filterable
              		placeholder="商品编码/商品名称">
              		<el-option v-for="item in allprolist2" :key="item.id" :label="item.fetch_code + '_' + item.title"
              			:value="item.id"></el-option>
              	</el-select>
              	<span
              		style="position: absolute; z-index:999; right: 30px; top: 0px; color: #1989FA; font-size: 16px; cursor: pointer;"
              		@click="quanxuanyong">
              		<i class="el-icon-circle-plus"></i>
              	</span>
              </el-form-item>

              <el-form-item label="供应商" class="bgh">
              	<el-input v-model="form.supplier" placeholder="供应商"></el-input>
              </el-form-item>

<!-- 						</div>

						<div class="searchflex" style="margin-bottom: 20px;"> -->

							<el-form-item label="订单ID" style="position: relative;" class="bgh">
								<el-input v-model.trim="sousuoshenme3" @input="sousuoshenmene3"  placeholder="订单ID/外部订单编号"></el-input>
								<!-- 下周上 -->
								<el-tooltip class="item" effect="dark" content="批量查询" placement="top-start">
									<span
										style="position: absolute; right: 10px; top: 0px; color: #1989FA; font-size: 16px; cursor: pointer;"
										@click="duoxuanlog = true">
										<i class="el-icon-circle-plus"></i>
									</span>
								</el-tooltip>
							</el-form-item>

              <!-- <el-form-item label="外部订单编号:" class="bgh">
              	<el-input v-model="form.source_id" placeholder="外部订单编号"></el-input>
                <el-tooltip class="item" effect="dark" content="批量查询" placement="top-start">
                	<span
                		style="position: absolute; right: -28px; top: 0px; color: #1989FA; font-size: 16px; cursor: pointer; z-index: 99;"
                		@click="duoxuanlog3 = true">
                		<i class="el-icon-circle-plus"></i>
                	</span>
                </el-tooltip>
                <i class="el-icon-circle-close" @click="form.source_id = ''"  v-if="form.source_id != ''"
                	style="position: absolute; right: 10px; color: #999; font-size: 16px; top: 12px;  z-index: 99;"></i>
              </el-form-item> -->

              <el-form-item label="身份证号" style="position: relative;" class="bgh">
              	<el-input v-model.trim="form.id_card_num" placeholder="身份证号"></el-input>
              	<!-- <i class="el-icon-circle-close" @click="form.id_card_num = ''"
              		style="position: absolute; right: 10px; color: #999; font-size: 20px; top: 6px; "></i> -->
                  <el-tooltip class="item" effect="dark" content="批量查询" placement="top-start">
                  	<span
                  		style="position: absolute; right: 10px; top: 0px; color: #1989FA; font-size: 16px; cursor: pointer;"
                  		@click="duoxuanlogx = true">
                  		<i class="el-icon-circle-plus"></i>
                  	</span>
                  </el-tooltip>
              </el-form-item>

              <el-form-item  class="bgh">
              	<el-input v-model.trim="sousuoshenme" style="margin-left:-90px; width: 290px;" @input="sousuoshenmene" placeholder="请输入生产号码/ICCID/物流单号"></el-input>
              	<el-tooltip class="item" effect="dark" content="批量查询" placement="top-start">
              		<span
              			style="position: absolute; right: 10px; top: 0px; color: #1989FA; font-size: 16px; cursor: pointer;"
              			@click="duoschm = true">
              			<i class="el-icon-circle-plus"></i>
              		</span>
              	</el-tooltip>
              </el-form-item>
              <!-- <el-form-item label="iccid:" class="bgh">
              	<el-input v-model="form.iccid"  placeholder="iccid"></el-input>
              </el-form-item> -->
              <!-- <el-form-item label="物流单号:" class="bgh">
              	<el-input v-model="form.tracking_number"  placeholder="物流单号"></el-input>
              </el-form-item> -->

              <el-form-item  class="bgh">
              	<el-input v-model.trim="sousuoshenme2"  style="margin-left:-90px; width: 290px;" @input="sousuoshenmene2" placeholder="请输入收件人电话/下单人昵称"></el-input>
              	<el-tooltip class="item" effect="dark" content="批量查询" placement="top-start">
              		<span
              			style="position: absolute; right: 10px; top: 0px; color: #1989FA; font-size: 16px; cursor: pointer;"
              			@click="duosjdh = true">
              			<i class="el-icon-circle-plus"></i>
              		</span>
              	</el-tooltip>
              </el-form-item>

              <el-form-item label="收货省市" class="bgh">
              	<el-cascader @change="changeaddress9"  :checkStrictly="true" :props="{ checkStrictly: true }"  v-model="form.citys" :options="citylist"></el-cascader>
              </el-form-item>





<!-- 						</div>

						<div class="searchflex" style="margin-bottom: 20px;"> -->
              <el-form-item label="订单状态" class="bgh">
              	<el-select v-model="form.statuses" clearable multiple collapse-tags placeholder="请选择订单状态">
              		<el-option :label="item.label" :value="item.value" v-for="(item,index) in peizhis.order_status" :key="index"></el-option>
              	</el-select>
              </el-form-item>

              <el-form-item label="交易状态" class="bgh">
              	<el-select v-model="form.refund_status" clearable placeholder="交易状态">
              		<el-option label="正常" value="100">正常</el-option>
              		<el-option label="退款中" value="200">退款中</el-option>
              		<el-option label="退款成功" value="300">退款成功</el-option>
                  <el-option label="已支付" value="800">已支付</el-option>
                  <el-option label="待支付" value="900">待支付</el-option>
              	</el-select>
              </el-form-item>

              <el-form-item label="激活状态" class="bgh">
              	<el-select v-model="form.active_status" clearable placeholder="激活状态">
              		<el-option label="无" value="0">无</el-option>
              		<el-option label="已激活" value="100">已激活</el-option>
              		<el-option label="激活且充值" value="200">激活且充值</el-option>
              	</el-select>
              </el-form-item>


              <el-form-item label="转&改单" class="bgh">
              	<el-select v-model="form.order_transfer_and_change"  placeholder="是否转单" >
                  <el-option label="全部" value="3">全部</el-option>
              		<el-option label="未转单" value="1">未转单</el-option>
              		<el-option label="转单" value="2">已转单</el-option>
                  <el-option label="未修改" value="4">未修改</el-option>
                  <el-option label="已修改" value="5">已修改</el-option>
              	</el-select>
              </el-form-item>


              <!-- <el-form-item label="人工改单:" class="bgh">
              	<el-select v-model="form.is_changed" clearable   placeholder="人工改单" >
              		<el-option label="未修改" value="0">未修改</el-option>
              		<el-option label="已修改" value="1">已修改</el-option>
              	</el-select>
              </el-form-item> -->

              <el-form-item label="按照标旗" class="bgh">
              	<el-select v-model="form.flag" clearable placeholder="标旗">
              		<el-option label="灰" value="0">
              			<span style="float: left">
              				<div class="color1"></div>
              			</span>
              			<span class="color1s">灰</span>
              		</el-option>
              		<el-option label="红" value="1">
              			<span style="float: left">
              				<div class="color2"></div>
              			</span>
              			<span class="color2s">红</span>
              		</el-option>
              		<el-option label="黄" value="2">
              			<span style="float: left">
              				<div class="color3"></div>
              			</span>
              			<span class="color3s">黄</span>
              		</el-option>
              		<el-option label="绿" value="3">
              			<span style="float: left">
              				<div class="color4"></div>
              			</span>
              			<span class="color4s">绿</span>
              		</el-option>
              		<el-option label="蓝" value="4">
              			<span style="float: left">
              				<div class="color5"></div>
              			</span>
              			<span class="color5s">蓝</span>
              		</el-option>
              		<el-option label="紫" value="5">
              			<span style="float: left">
              				<div class="color6"></div>
              			</span>
              			<span class="color6s">紫</span>
              		</el-option>
              	</el-select>
              </el-form-item>

              <!-- <el-form-item label="是否联系:" class="bgh">
              	<el-select v-model="form.is_called" clearable placeholder="是否联系">
              		<el-option label="未联系" value="0">未联系</el-option>
              		<el-option label="已联系" value="1">已联系</el-option>
              	</el-select>
              </el-form-item> -->


						</div>
<!-- 						<div class="searchflex" style="margin-bottom: 20px;">




						</div>
            <div class="searchflex" style="margin-bottom: 20px;">





            </div> -->
						<div class="searchflex" style="margin-bottom: 20px;">
							<el-form-item label="时间选择" class="bgh">
								<el-select v-model="form.timems" @change="timemschange" placeholder="时间选择">
									<el-option label="状态变更时间" value="0">状态变更时间</el-option>
									<el-option label="用户下单时间" value="1">用户下单时间</el-option>
									<el-option label="平台创建时间" value="2">平台创建时间</el-option>
                  <el-option label="激活时间" value="3">激活时间</el-option>
								</el-select>
								<el-date-picker style="width: 470px;" v-model="form.time" @change="timechange" :picker-options="pickerOptions"
									:clearable='clearable' value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" :default-time="['00:00:00', '23:59:59']"
									range-separator="——" start-placeholder="开始日期" end-placeholder="结束日期">
								</el-date-picker>



							</el-form-item>
              <el-button  @click="chongzhisousuo" round >清空</el-button>
              <el-button type="danger" @click="search" style="margin-left: 0;" round @keyup.enter="search()">搜索</el-button>
						</div>
            <div class="hei10" style="margin-bottom: 20px;"></div>
						<div>
              <div class="kflexbc">
                <div class="kflexc">
                  <el-button type="danger" round @click="daochulogskai" style="margin-right: 20px !important;" :loading="daochuing">{{daochuingz}}
                  </el-button>



                  <el-select v-model="moredo" @change="moredochange" style="margin-right: 20px !important;" placeholder="批量操作">

                  	<el-option label="批量修改产品" value="0">批量修改产品</el-option>
                  	<el-option label="批量放弃" value="1">批量放弃</el-option>
                  	<el-option label="批量留言（仅天猫）" value="2">批量留言（仅天猫）</el-option>
                  	<!-- <el-option label="批量复制" value="3" v-if="shop_id == 303063 || shop_id == 301655 || shop_id == 353182">批量复制</el-option> -->
                  </el-select>

                  <el-select v-model="color" @change="moreflag"  style="margin-right: 20px !important;" clearable placeholder="批量标旗" v-if="func_I02">
                  	<el-option label="灰" value="0">
                  		<span style="float: left">
                  			<div class="color1"></div>
                  		</span>
                  		<span class="color1s">灰</span>
                  	</el-option>
                  	<el-option label="红" value="1">
                  		<span style="float: left">
                  			<div class="color2"></div>
                  		</span>
                  		<span class="color2s">红</span>
                  	</el-option>
                  	<el-option label="黄" value="2">
                  		<span style="float: left">
                  			<div class="color3"></div>
                  		</span>
                  		<span class="color3s">黄</span>
                  	</el-option>
                  	<el-option label="绿" value="3">
                  		<span style="float: left">
                  			<div class="color4"></div>
                  		</span>
                  		<span class="color4s">绿</span>
                  	</el-option>
                  	<el-option label="蓝" value="4">
                  		<span style="float: left">
                  			<div class="color5"></div>
                  		</span>
                  		<span class="color5s">蓝</span>
                  	</el-option>
                  	<el-option label="紫" value="5">
                  		<span style="float: left">
                  			<div class="color6"></div>
                  		</span>
                  		<span class="color6s">紫</span>
                  	</el-option>
                  </el-select>
                  <div style="background: #F3F5F8; border-radius: 40px; padding-right: 20px; " class="kflexc">
                    <upload-excel-component @on-selected-file="exportData" style="margin-right: 20px;" buttonName="批量导入放弃"></upload-excel-component>
                    <div style=" cursor: pointer; color: #197cff; font-size: 14px; " @click="xiazaifangqi">模板下载</div>
                  </div>
                </div>

                <div>
                  <!-- <el-button round  @click="dingdanliuzhuankai">订单流转配置</el-button> -->

                  <el-button round v-if="func_I02"  v-loading="shop_id == ''" @click="goupload">照片快速上传
                  </el-button>
                </div>
              </div>


						</div>

					</el-form>

					<div v-if="daochutishi"
						style=" border: 1px #EAEAEA solid; margin: 0 20px; padding: 10px 10px; background: #fffcf3;">
						<div style="font-size: 14px; margin-bottom: 10px; font-weight: bold; color: #333333;">
							为了给您提供更好的查询性能以及体验，我们对导出功能进行了更改：</div>
						<div style="padding-left: 20px; font-size: 14px; color: #666666; ">1.超出6个月的订单请前往历史订单查询</div>
						<div
							style="padding-left: 20px; font-size: 14px; color: #666666; display: flex;  justify-content: space-between; align-items: center;">
							<div>2.我们将为您保留已生成的数据，便于您随时导出使用</div>
							<div>
                <el-button size="mini" type="primary" @click="xiazai(1)">导出投流数据</el-button>
								<!-- <el-button size="mini" type="primary" @click="xiazai()">生成报表</el-button> -->
                <el-button size="mini" type="primary" @click="daochulogskai">生成报表</el-button>
								<el-button size="mini" type="primary" @click="goxiazai">查看已经生成的报表</el-button>
							</div>
						</div>
					</div>



					<div class="powertable" v-loading="loading" style="padding-top: 0px;">
						<div class="newsearch" style="margin-bottom: 30px;">
							<div :class="act == 1 ? 'news1 acts':'news1'" @click="searchall">全部订单</div>
							<!-- <span class="shuxian"><img :src="srcxian"></span> -->
							<div :class="act == 4 ? 'news1 acts':'news1'" @click="wait">待完善证件信息</div>
							<!-- <span class="shuxian"><img :src="srcxian"></span> -->
							<div :class="act == 2 ? 'news1 acts':'news1'" @click="shenfail">证件不合格</div>
							<!-- <span class="shuxian"><img :src="srcxian"></span> -->
							<div :class="act == 3 ? 'news1 acts':'news1'" @click="kaifail">开卡失败</div>
							<!-- <span class="shuxian"><img :src="srcxian"></span> -->
							<!-- <div :class="act == 5 ? 'news1 acts':'news1'" @click="autofail">自动发货失败</div> -->
							<!-- <span class="shuxian"><img :src="srcxian"></span> -->

							<!-- <div :class="act == 6 ? 'news1 acts':'news1'" @click="tuikuan">退款拦截</div> -->
							<!-- <span v-if="shop_id == 50481 || shop_id == 304676"  class="shuxian"><img :src="srcxian"></span> -->

							<!-- <div v-if="shop_id == 50481 || shop_id == 304676" :class="act == 7 ? 'news1 act':'news1'" @click="linshi">临时补充照片({{xinwang_photo}})</div> -->
							<!-- <span class="shuxian"><img :src="srcxian"></span> -->
							<!-- v-if="shop_id == 74034 || shop_id == 304676 || shop_id == 301695 || shop_id == 50481" -->
							<!-- <div :class="act == 8 ? 'news1 acts':'news1'" @click="shuadanlanjie">刷单拦截
							</div> -->
              <!-- <span class="shuxian"><img :src="srcxian"></span> -->
                <!-- <div :class="act == 9 ? 'news1 acts':'news1'" @click="santian">超过三天未发货
                </div> -->
							<!--              <span v-if="shop_id == 50481 || shop_id == 304676"  class="shuxian"><img :src="srcxian"></span>-->

							<!--              <div :class="act == 8 ? 'news1 act':'news1'" @click="profail">生产失败({{profailnum}})</div>-->
							<!--              <span class="shuxian"><img :src="srcxian"></span>-->
						</div>
						<div class="newlist" style="margin-bottom: 10px;" v-if="act == 8">
							<div class="flex" style="padding: 10px 20px;">
								<div style="margin-right: 10px; line-height: 36px;">店铺名称</div>
								<div style="margin-right: 30px;">
									<el-input v-model="form.source"></el-input>
								</div>
								<div style="margin-right: 10px; line-height: 36px;">商品编码</div>
								<div style="margin-right: 10px;">
									<el-input v-model="form.good_sku"></el-input>
								</div>
								<el-button type="danger" @click="search">检索</el-button>
							</div>
							<div class="newleft new-left">
								<div class="newthli1 checkBtn">
									<div class="checkAll" style="margin-left: 16px;margin-right: 10px;">
										<input type="checkbox" @change="quanxuan" value="0" v-model="quanxuana" />全选
									</div>
									<router-link to="/order_question/shuadanadd">
										<el-button plain  type="primary">配置刷单店铺</el-button>
									</router-link>
									<el-button @click="shenfenzheng.log = true" plain type="primary"
										style="margin-left:10px;">按身份证识别刷单</el-button>
									<div class="bao2" style="display: flex; margin-right: 10px;">

                  <el-button @click="goid('/order_question/shuadanqingli')" type="danger" style="margin-left:10px;">刷单订单处理</el-button>
										<!-- <upload-excel-component @on-selected-file="exportData" class="btnp"
											buttonName="刷单订单处理"></upload-excel-component>
										<el-button @click="downshuadan" type="text" style="margin-left:10px;">刷单订单处理模板
										</el-button> -->

									</div>
									<el-button type="danger" @click="shuadanlog = true">正常订单放行</el-button>
									<el-button type="danger" @click="xiazai" :loading="daochuing"
										style="margin-right: 20px;">导出检索订单</el-button>
								</div>
							</div>
						</div>

						<div class="newlist newflex" style="margin-bottom: 10px;" v-if="act == 5">
							<div class="newleft new-left">
								<div class="newthli1 checkBtn">
									<div class="checkAll" style="margin-left: 16px;margin-right: 10px;">
										<input type="checkbox" @change="quanxuan" value="0" v-model="quanxuana" />全选
									</div>
									<el-button  @click="dispose">批量处理</el-button>


									<div class="bao" style="display: inline-block">
										<upload-excel-component @on-selected-file="exportData" buttonName="按导入已处理">
										</upload-excel-component>
									</div>
									<div style="margin-left:20px; color:#197cff" @click="uploadexcle">下载模板</div>
									<div class="pageBox">
										<el-pagination layout="prev, next" :current-page="page" @current-change="fanye"
											:page-size="page_size" :total="total" prev-text="上一页" next-text="下一页">
										</el-pagination>
									</div>
								</div>
							</div>
						</div>
						<div class="newlist newflex" style="margin-bottom: 10px;" v-if="act == 6">
							<div class="newleft new-left">
								<div class="newthli1 checkBtn">
									<div class="checkAll" style="margin-left: 16px;margin-right: 10px;">
										<input type="checkbox" @change="quanxuan" value="0" v-model="quanxuana" />全选
									</div>
									<el-button @click="again">继续生产</el-button>
									<el-button  @click="goLan"
										style="color:#197CFF;border-color: #197CFF;">拦截设置<i
											class="el-icon-s-operation" style="color: #197CFF;"></i></el-button>
									<div class="pageBox">
										<el-pagination layout="prev, next" :current-page="page" @current-change="fanye"
											:page-size="page_size" :total="total" prev-text="上一页" next-text="下一页">
										</el-pagination>
									</div>
								</div>
							</div>
						</div>
						<div class="newlist newflex" style="margin-bottom: 10px;position: relative;">
							<div class="newleft" style="position: relative;">
								<div style="position: absolute; left: 20px; top:10px; z-index: 99;">
									<input type="checkbox" @change="quanxuan" value="0" v-model="quanxuana"
										v-if="act!=5 && act!=6" />
								</div>
								<div class="newthli" style="position:relative;">订单信息

                  <div  @click="shunxu" style="cursor: pointer; position: absolute; right: -20px; top:0;">
                  	时间排序
                  	<i class="el-icon-top" style="color: #077ECE;" v-if="!desc"></i>
                  	<i style="color: #077ECE;" class="el-icon-bottom" v-if="desc"></i>
                  </div>
                </div>

								<div class="newthli">收件人管理</div>
								<div class="newthli">备注&失败原因</div>
								<div class="newthli" style="flex:0.7">订单状态</div>
								<div class="newthli" style="flex:0.7">生产信息</div>
                <div class="newthli" style="width:120px; flex:none;" >操作</div>
							</div>
							<!-- <div class="newright">

							</div> -->
						</div>
						<div class="newlist newlistbor" v-for="(item,index) in list" :key="item.id">
							<div class="newh">
								<div class="newleft">
									<div class="newhli">
										<input type="checkbox" :value="item.id" @change="danxuan" v-model="danxuans" />
									</div>
									<div class="newhli">
										订单ID：{{item.id}}
										<i class="el-icon-document-copy"
											style="color: #077ECE; font-size: 16px; margin-left: 10px; cursor: pointer;"
											@click="copy(item.id)"></i>
									</div>
									<div class="newhli" style="display:flex">
										订单来源：{{item.source}}
										<!-- <i class="el-icon-document-copy" style="color: #077ECE; font-size: 16px; margin-left: 10px; cursor: pointer;" @click="copy(item.source)"></i> -->
										<!-- <img :src="srcali" @click="ali(item.id)" v-if="item.source.includes('tmall')"/> -->

										<el-tooltip popper-class="tooltip" effect="dark" placement="top">
											<div slot="content">{{tmall}}</div>
											<div>
												<img :src="srcali" @click="ali(item.id)" @mouseover="alih(item.id)"
													v-if="item.source.includes('tmall') || item.source.includes('pdd')" />
											</div>
										</el-tooltip>
									</div>
									<div class="newhli">
										外部订单编号：{{item.source_id}}
										<i class="el-icon-document-copy"
											style="color: #077ECE; font-size: 16px; margin-left: 10px; cursor: pointer;"
											@click="copy(item.source_id)"></i>
										<span v-if="item.source_id.indexOf('-C') != -1">
											<el-popover placement="top-start" width="200" trigger="hover"
												content="该订单为拆分订单（电商平台购买数量大于2时自动拆分的订单）针对该订单的修改信息、加急、标旗备注、外呼已联系操作都将自动同步修改到其关联的拆分订单上。">
												<span slot="reference">
													<img src="../../../static/img/chai.png"
														@click="searchbrother(item.real_source_id)"
														style="width: 20px; margin-left: 10px; position: relative; top: 4px; cursor: pointer;" />
												</span>
											</el-popover>
										</span>

									</div>
									<div class="newhli" v-if="form.timems == 0">状态变更时间：{{item.status_updated_at}}</div>
									<div class="newhli" v-if="form.timems == 1">用户下单时间：{{item.ordered_at}}</div>
									<div class="newhli" v-if="form.timems == 2">平台创建时间：{{item.created_at}}</div>
                  <div class="newhli" v-if="form.timems == 3">激活时间：{{item.activated_at}}</div>

                  <el-tooltip popper-class="tooltip" effect="dark" placement="top">
                    <div slot="content">{{item.memo}}</div>
                    <div>
                      <span @click="choosecolorid(item.id,item.source_id)"
                        :style="{color:item.flag,fontSize:25+'px'}"
                        class="iconfont icon-flag-fill"></span>
                    </div>
                  </el-tooltip>


                  <div style="position: absolute; top: 12px; right: 15px;" class="kflexcc">



                      <el-tooltip v-if="item.complaint_job_id" popper-class="tooltip" effect="dark" placement="top">
                        <div slot="content">该订单被用户投诉过，点击可查看详情</div>
                        <div @click="todetail_s(item.complaint_job_id,item.complaint_job_status)" class="t_su" style="background: #9959FF !important;">诉</div>
                      </el-tooltip>

                      <el-tooltip popper-class="tooltip" effect="dark" placement="top" v-if="item.is_promotion == 1">
                        <div slot="content">
                          <div>投放渠道：{{item.promotion_type}}</div>
                          <div>是否上报：<span v-if="item.promotion_status == 0">未上报</span> <span v-if="item.promotion_status == 1">已上报</span></div>
                          <div>广告ID：{{item.clickid}}</div>
                        </div>
                        <div class="t_su">投</div>
                      </el-tooltip>

                      <div v-if="item.is_sub_order==1"	@click="checkzeng(item.main_order_id)" class="t_zeng">赠</div>

                      <div v-if="item.transfer_count>0"	@click="checkzhuan(item.id)" class="t_zhuan">转</div>

                      <div v-if="act == 2||act == 3"	@click="waihu(item.id)"	style="cursor: pointer; display: flex;align-items: center;color:#18a0fb;margin-left: 100px;position: absolute;top: 0px;right: 75px;">
                        <img src="../../../static/img/wh333.png" style="margin-right: 10px;width: 20px; height: 20px;">外呼
                      </div>

                      <div v-if="item.is_fans" class="t_su" style="border-radius: 4px;  right: 75px; background: linear-gradient(218.83deg, rgb(255, 31, 31) 13.99%,rgb(255, 96, 200) 88.601%);">粉</div>
                  </div>


				</div>
								<!-- <div class="newright">

								</div> -->
							</div>
							<div class="newb">
								<div class="newt1">
                  <div style="padding:15px;">
                    <div class="newtitle">商品名称:<span @click="todetail(item.order_pages_short_id)" style="cursor:pointer;color:#197cff">{{item.my_gname}}</span></div>

                    <div class="newcode">
                    	商品编码:{{item.my_gsku}}
                    	<span v-if="item.my_gsku != item.start_sku && item.start_sku != null">
                    		<el-tooltip placement="top">
                    			<div slot="content">原：{{item.start_sku}}</div>
                    			<span
                    				style="color: #FFB22D; font-size: 16px; margin-left: 10px; cursor: pointer;">改</span>
                    		</el-tooltip>
                    	</span>
                    </div>
                    <div class="newcode">
                      <div style="display: flex;">
                        <div>产品编码:</div>
                       <!-- {{item.supplier_product_sku}} -->
                        <dianjichakan :id="item.id"></dianjichakan>
                      </div>

                    </div>

						<div class="newcode" v-if="item.plan_mobile != 0">购买号码:{{item.plan_mobile}}
							<span style="margin-left: 10px;"
						v-if="act == 3"
						@click="changenum(item.id)" class="seephoto" >修改</span>
						</div>
						<div class="newcode" v-if="item.plan_mobile == 0">购买号码:无
							<span style="margin-left: 10px;"
						v-if="act == 3"
						@click="changenum(item.id)" class="seephoto" >修改</span>
					</div>



                    <!-- <div class="newcode">购买数量:{{item.amount}}</div> -->
                  </div>

								</div>
								<div class="newt2" v-if="shop_id == 304676 || shop_id == 50481 ">
                  <div style="padding:15px;" v-if="!item.source.includes('douyin')">
                    <div class="newcar">
                    	<span style="margin-right: 20px;">证件姓名：{{item.id_card_name}}</span>
                    	收件人：{{item.address_name}}
                    </div>
                    <div class="newcar">
                    	证件号码：{{item.id_card_num}}
                    	<span class="seephoto" style="margin-left: 10px;"
                    		@click="seephoto(item)"  v-if="user.id != 304673  && chakanwanzhengxinxi">查看证件</span>
                      <span class="seephoto" style="margin-left: 10px;"
                      	@click="jiemi(item)"  v-if="user.id != 304673  && chakanwanzhengxinxi">查看完整信息</span>
                    </div>
                    <div class="newcar">联系电话：{{item.address_mobile}}</div>
                    <div class="newcar">
                    	收货地址：{{item.address_province}}{{item.address_city}}{{item.address_district}}{{item.town}}{{item.address}}
                    </div>
                  </div>
                  <div style="padding:15px;" v-if="item.source.includes('douyin')">
                    <BodyGuard :data="item.data" />
                  </div>
								</div>
                <div class="newt2" v-if="shop_id != 304676 && shop_id != 50481 ">
                  <div style="padding:15px;">
                    <div class="newcar">
                    	<span style="margin-right: 20px;">证件姓名：{{item.id_card_name}}</span>
                    	收件人：{{item.address_name}}
                    </div>
                    <div class="newcar">
                    	证件号码：{{item.id_card_num}}
                    	<span class="seephoto" style="margin-left: 10px;"
                    		@click="seephoto(item)" v-if="chakanwanzhengxinxi">查看证件</span>
                      <span class="seephoto" style="margin-left: 10px;"	@click="jiemi(item)" v-if="chakanwanzhengxinxi">查看完整信息</span>
                    </div>
                    <div class="newcar">联系电话：{{item.address_mobile}}</div>
                    <div class="newcar">
                    	收货地址：{{item.address_province}}{{item.address_city}}{{item.address_district}}{{item.town}}{{item.address}}
                    </div>
                  </div>
                </div>
								<div class="newt3" v-if="act != 5">
                  <div style="padding:15px;">
                    <el-tooltip effect="dark" popper-class="tooltip" placement="top">
                    	<div slot="content">
                        <div v-for="item2 in item.memo">
                          {{item2}}
                        </div>
                      </div>

                      <div style="max-height:100px; overflow: hidden;">
                        <div v-for="item2 in item.memo">
                          {{item2}}
                        </div>
                      </div>
                    </el-tooltip>
                  </div>
                  <div style="padding:15px;" v-if="act == 1">
                    <el-tooltip effect="dark" popper-class="tooltip" placement="top">
                    	<div slot="content">
                        <div v-for="item2 in item.upstream_reason">
                          {{item2}}
                        </div>
                      </div>

                      <div style="max-height:100px; overflow: hidden;">
                        <div v-for="item2 in item.upstream_reason">
                          {{item2}}
                        </div>
                      </div>
                    </el-tooltip>
                  </div>
								</div>
								<div class="newt3" v-if="act == 5">
                  <div style="padding:15px;">
                    <el-tooltip effect="dark" popper-class="tooltip" placement="top">
                    	<div slot="content">
                        <div v-for="item2 in item.reason">
                          {{item2}}
                        </div>
                      </div>
                    	<div style="max-height:100px; overflow: hidden;">
                        <div v-for="item2 in item.reason">
                          {{item2}}
                        </div>
                      </div>
                    </el-tooltip>
                  </div>

								</div>
								<div class="newt4" style="flex:0.7">
                  <div style="padding:15px;">
                    <div class="newcar kflexc">

                      <div>{{item.status_name}}</div>

                      <el-tooltip placement="top" v-if="item.order_limit == 1">
                      	<div slot="content">该订单因不满足省内发展订单比例，处于提单对列中</div>
                      	<div style="width: 20px; line-height: 20px; border-radius: 10px; background: #f00; text-align: center; color: #fff; font-size: 12px; margin-left: 10px;">限</div>
                      </el-tooltip>


                    </div>
                    <div class="newcar2" @click="seememo(item.seller_memo)">操作记录</div>
                    <div class="newcar" :style="{color:item.activeColor}">交易状态:{{item.refund_name}}
                    </div>
                    <div class="newcar">激活状态:{{item.active_name}} <span style="margin-left: 5px;" v-if="item.recharge_amount != 0 && item.recharge_amount != null && item.recharge_amount != ''">{{item.recharge_amount}}</span></div>
					<!-- <div v-if='item.active_name=="激活且充值"' class="newcar">充值金额:{{item.recharge_amount}}</div> -->
                  </div>

								</div>
								<div class="newt5" style="flex:0.7">
                  <div style="padding:15px;">
                    <div class="newcar">生产号码:
                      <span class="newcar" v-if="item.plan_mobile_produced != null">{{item.plan_mobile_produced}}</span>
                      <span class="newcar" v-if="item.plan_mobile_produced == null">无</span>

                      <el-tooltip effect="light" popper-class="tooltip" placement="top" v-if="item.is_more_produce_mobile  > 0 && shop_id != item.producer_id">
                        <div slot="content">
                          该订单存在多个生产号码（切商品、转单、同一上游返回多个生产号码等导致） <span style="color: #1989FA;" @click="shengchanhaomakai(item)">查看</span>
                        </div>
                        <i class="el-icon-warning" style="font-size: 20px; color: rgb(255, 185, 0);"></i>
                      </el-tooltip>
                    </div>

                    <div class="newcar" v-if="item.iccid && item.iccid != null">
                        iccid:
                        <span class="newcar" >{{item.iccid}}</span>
                    </div>

                    <div  class="newcar" style="  cursor: pointer;" v-if="item.tracking_company != ''" >物流公司：<span @click="wuliuxiangqing(item)" class="lanse">{{item.tracking_company}}</span><i class="el-icon-document-copy"
					style="color: #077ECE; font-size: 16px; margin-left: 10px; cursor: pointer;"
					@click="copy2(item.tracking_company,item.tracking_number)"></i></div>
                    <div class="newcar" style="  cursor: pointer;" v-if="item.tracking_number != ''" >物流单号：<span @click="wuliuxiangqing(item)" class="lanse">{{item.tracking_number}}</span></div>
                    <!-- <div class="newcar2" @click="seememo(item.seller_memo)">操作记录</div> -->
                  </div>



								</div>
								<div class="newt6">
                  <div style="padding:15px;">
                    <div class="seebtn" @click="orderdetailkai(item)"  v-if="user.id != 304673 && chakanwanzhengxinxi">查看详情</div>
                    <div class="seebtn" v-if="act == 1 && func_I02 && chakanwanzhengxinxi  && item.status != 0"
                    	@click="seephoto(item)">
                    	修改照片</div>

                    <div class="seebtn" v-if="act == 6 && func_I02" @click="again1(item.id)">继续生产</div>
                    <!-- <div class="seebtn" v-if="act == 1 && item.status>=550"
                    	@click="seetracking(item.tracking_company,item.tracking_number)">查看物流</div> -->
					<!-- <div class="seebtn" v-if="act == 1 && item.status>=550"
                    	@click="newseetracking(item)">查看物流</div> -->

                    <div class="seebtn" v-if="act == 2 && func_I02 && chakanwanzhengxinxi && item.status != 0"
                    	@click="seephoto(item)">
                    	重传照片</div>
                    <div class="seebtn" v-if="act == 2 && func_I02 && item.status != 0" @click="giveoutone(item.id)">放弃订单
                    </div>


                    <div class="seebtn" v-if="act == 7 && func_I02 && item.status != 0"
                    	@click="seephoto(item)">
                    	重传照片</div>
                    <div class="seebtn" v-if="act == 7 && func_I02 && item.status != 0" @click="giveoutone(item.id)">放弃订单
                    </div>

                    <div class="seebtn" v-if="act == 4 && func_I02 && item.status != 0"
                    	@click="seephoto(item)">
                    	上传照片</div>

                    <div class="seebtn" v-if="act == 4 && func_I02 && item.status != 0" @click="giveoutone(item.id)">放弃订单</div>

                    <div class="seebtn" v-if="act == 3 && func_I02 && item.status != 0" @click="rep(item.id)">重新提交</div>
                    <div class="seebtn" v-if="act == 1 && func_I02 && item.status == -460 && item.status != 0"
                    	@click="rep(item.id)">重新提交</div>

                    <div class="seebtn" v-if="act == 3 && func_I02 && item.source.startsWith('ks-') && item.status != 0" @click="giveoutone2(item)">快手放弃订单</div>
                    <div class="seebtn" v-if="act == 3 && func_I02 && item.dy_white == 1 && item.status != 0" @click="giveoutone(item.id,1)">放弃并退款</div>
                    <div class="seebtn" v-if="act == 3 && func_I02 && item.dy_white != 1 && item.status != 0" @click="giveoutone(item.id)">放弃订单</div>

                    <div class="seebtn" v-if="act == 5 && func_I02"
                    	@click="seetracking(item.tracking_company,item.tracking_number)">查看单号</div>
                    <div class="seebtn" v-if="item.auto_deliver == 0 && act == 5 && func_I02"
                    	@click="chuli(item.id)">已处理</div>


                    <div class="seebtn" v-if="act == 8 && func_I02" @click="giveoutone(item.id)">取消订单
                    </div>
                    <div class="seebtn" v-if="act == 8 && func_I02" @click="fangxing(item.id)">单个放行
                    </div>


                    <div class="seebtn" v-if="act != 5 && act != 8 && func_I02">
                    	<el-dropdown trigger="click" @click.native="choosefixid(item.id,item.source_id)"
                    		@command="fix">
                    		<div class="el-dropdown-link"> 更多 <i
                    				class="el-icon-arrow-down el-icon--right"></i> </div>
                    		<el-dropdown-menu slot="dropdown">
                    			<!-- <el-dropdown-item command="fixpro" >修改商品</el-dropdown-item> -->
                    			<el-dropdown-item command="fixorder"  v-if=" item.status != 0 && chakanwanzhengxinxi">修改订单信息</el-dropdown-item>
                    			<el-dropdown-item command="tijiaochushen" v-if=" item.status != 0">提交初审</el-dropdown-item>
                    			<!-- <el-dropdown-item v-if="(act == 1 || act == 6) && func_I02 && item.status != 0"
                    				command="backorder">放弃订单</el-dropdown-item> -->
                    			<!-- <el-dropdown-item command="fast" v-if="item.status != 0">加急处理</el-dropdown-item> -->
                          <el-dropdown-item  command="tousugongdan">创建投诉工单</el-dropdown-item>
                          <el-dropdown-item  command="shangbao" v-if="item.promotion_status == 0">抖音手动上报</el-dropdown-item>

                          <el-dropdown-item  command="jingdongtuikuan" v-if="item.source.startsWith('jd') && item.jd_refund == 0">京东平台退款</el-dropdown-item>
                          <el-dropdown-item  command="jingdongtuikuan2" v-if="item.source.startsWith('jd') && item.jd_refund == 1">京东平台退款</el-dropdown-item>

                          <!-- <el-dropdown-item command="zhuanshu" >添加专属维系</el-dropdown-item> -->
                    		</el-dropdown-menu>
                    	</el-dropdown>
                    </div>

                    <div v-if="act !=6">
                    	<div v-if="item.called == '未联系' && deliver_fail != 1" class="seebtn"
                    		@click="contact(item.id)"><i class="el-icon-phone"></i>未联系
                    	</div>
                    	<div v-if="item.called == '已联系' && deliver_fail != 1" class="seebtn"><i
                    			class="el-icon-phone"></i>已联系</div>
                    </div>
                  </div>

								</div>
							</div>
						</div>

						<div class="fenye">
							<el-pagination background layout="total,prev, pager, next,sizes" :current-page="page"
								@current-change="fanye" :page-size="page_size" @size-change="handleSizeChange" :page-sizes="[20, 50, 100, 200,500,1000]" :total="total"></el-pagination>
						</div>
					</div>
				</div>
			</div>
		</div>
		<el-dialog title="查看操作记录" :close-on-click-modal="false" :visible.sync="seememolog" width="800px">
			<div v-html="memo" style="line-height: 30px;"></div>
			<span slot="footer" class="dialog-footer">
				<el-button type="primary"  @click="seememolog = false">好的</el-button>
			</span>
		</el-dialog>
		<el-dialog title="修改订单信息" :close-on-click-modal="false" :visible.sync="seephotolog" width="1254px">
			<div class="logflex">
				<div class="proimg" v-if="choose.face != ''">
					<img :src="choose.face" />
				</div>
				<div class="proimg" v-if="choose.face == ''">暂无照片</div>
				<div class="proimg" v-if="choose.back != ''">
					<img :src="choose.back" />
				</div>
				<div class="proimg" v-if="choose.back == ''">暂无照片</div>
				<div class="proimg" v-if="choose.hand != ''">
					<img :src="choose.hand" />
				</div>
				<div class="proimg" v-if="choose.hand == ''">暂无照片</div>
				<div class="protitle">
					<el-upload class="upload-demo" :show-file-list="false"
						action="https://jsonplaceholder.typicode.com/posts/" :on-change="uploadok" :auto-upload="false">
						<el-button type="primary" size="small" @click="fixchoose('face')">修改正面照片</el-button>
					</el-upload>
				</div>
				<div class="protitle">
					<el-upload class="upload-demo" :show-file-list="false"
						action="https://jsonplaceholder.typicode.com/posts/" :on-change="uploadok" :auto-upload="false">
						<el-button type="primary" size="small" @click="fixchoose('back')">修改反面照片</el-button>
					</el-upload>
				</div>
				<div class="protitle">
					<el-upload class="upload-demo" :show-file-list="false"
						action="https://jsonplaceholder.typicode.com/posts/" :on-change="uploadok" :auto-upload="false">
						<el-button type="primary" size="small" @click="fixchoose('hand')">修改免冠照片</el-button>
					</el-upload>
				</div>
			</div>
			<div style="padding-top: 20px;">
				<el-form ref="form" @submit.native.prevent :model="choose" label-width="110px">
					<div class="flex">
						<el-form-item label="身份证姓名:">
							<el-input v-model="choose.id_card_name"></el-input>
						</el-form-item>
						<el-form-item label="身份证号码:">
							<el-input v-model="choose.id_card_num"></el-input>
						</el-form-item>
					</div>
					<div class="flex">
						<el-form-item label="收货人:">
							<el-input v-model="choose.address_name"></el-input>
						</el-form-item>
						<el-form-item label="联系电话:">
							<el-input v-model="choose.address_mobile"></el-input>
						</el-form-item>
					</div>
					<div class="flex">
						<el-form-item label="收货地址:" class="dz">
							<el-cascader @change="changeaddress2" v-model="choose.city" :options="options">
							</el-cascader>
              <el-input v-model="choose.town" style="margin-top:20px;"></el-input>
							<el-input v-model="choose.address" style="margin-top:20px;"></el-input>
						</el-form-item>

					</div>
				</el-form>
			</div>
			<span slot="footer" class="dialog-footer">
				<el-button type="primary" size="small" @click="repgo" :loading="repgoing">保存并重新提交</el-button>
			</span>
		</el-dialog>

		<el-dialog title="重新上传照片" :visible.sync="seephotolog2" :close-on-click-modal="false" width="1254px">
			<div v-loading="seephotoloading">
				<div style="display: flex; justify-content: flex-end; width: 99%; ">
					<div class="copyBtn" v-if="urlStatus && can_upload" @click="copyurl">
						{{urlStatus==='photos'?'复制订单专属照片上传连接':'复制专属证件信息上传链接'}}</div>
				</div>
				<div class="logflex" v-if="!urlStatus">该订单无需证件信息</div>
				<div class="logflex" v-if="urlStatus === 'idcodenum' && !can_upload">该订单当前状态不支持修改证件信息。如需修改，请联系生产</div>
				<div class="logflex" v-if="urlStatus==='photos'">
					<div class="proimg" v-if="choose.face != ''">
						<img :src="choose.face" />
					</div>
					<div class="proimg" v-if="choose.face == ''">暂无照片</div>
					<div class="proimg" v-if="choose.back != ''">
						<img :src="choose.back" />
					</div>
					<div class="proimg" v-if="choose.back == ''">暂无照片</div>
					<div class="proimg" v-if="choose.hand != ''">
						<img :src="choose.hand" />
					</div>
					<div class="proimg" v-if="choose.hand == ''">暂无照片</div>
					<div class="protitle" v-if="waitpic && can_upload">
						<el-upload class="upload-demo" :show-file-list="false"
							action="https://jsonplaceholder.typicode.com/posts/" :on-change="uploadok"
							:auto-upload="false">
							<el-button type="primary" size="small" @click="fixchoose('face')">修改正面照片</el-button>
						</el-upload>
					</div>
					<div class="protitle" v-if="waitpic && can_upload">
						<el-upload class="upload-demo" :show-file-list="false"
							action="https://jsonplaceholder.typicode.com/posts/" :on-change="uploadok"
							:auto-upload="false">
							<el-button type="primary" size="small" @click="fixchoose('back')">修改反面照片</el-button>
						</el-upload>
					</div>
					<div class="protitle" v-if="waitpic && can_upload">
						<el-upload class="upload-demo" :show-file-list="false"
							action="https://jsonplaceholder.typicode.com/posts/" :on-change="uploadok"
							:auto-upload="false">
							<el-button type="primary" size="small" @click="fixchoose('hand')">修改免冠照片</el-button>
						</el-upload>
					</div>
				</div>
				<div class="idCarda" v-if="urlStatus && can_upload">
					<el-form ref="zhengjian" @submit.native.prevent :model="choose" label-width="110px">
						<div class="flex" style="margin-top: 40px;justify-content: center;align-items: center;">
							<el-form-item label="证件姓名">
								<el-input v-model="choose.id_card_name" @blur="changeIdCardMsg"></el-input>
							</el-form-item>
							<el-form-item label="身份证号码:">
								<el-input v-model="choose.id_card_num" @blur="changeIdCardMsg"></el-input>
							</el-form-item>
							<div style="margin-left: 10px;" v-if="urlStatus==='photos'">
								<el-button type="primary" @click="getIdCardMsgByAI" size="small">智能识别填充证件信息</el-button>
							</div>
						</div>
					</el-form>
				</div>
			</div>

			<span slot="footer" class="dialog-footer" style="display: flex;justify-content: center;"
				v-if="urlStatus && can_upload">
				<!-- 照片等待上传、照片不合格才有资格改图片 -->
				<!-- <el-button type="primary" @click="reppicgo" size="small" v-if="waitpic && nowpicstatus == 140  && act != 7 && func_I02">提交</el-button>
        <el-button type="primary" @click="reppicgo" size="small" v-if="waitpic && nowpicstatus == 150  && act != 7 && func_I02">提交</el-button>
        <el-button type="primary" @click="reppicgo" size="small" v-if="waitpic && nowpicstatus == -200  && act != 7 && func_I02">提交</el-button> -->

				<el-button type="primary" @click="reppicgo" size="small" v-if="waitpic && act != 7 && func_I02">提交至初审
				</el-button>
				<!-- <el-button type="primary" @click="reppicgo2" size="small" v-if="waitpic && act == 7 && func_I02">提交上游</el-button>
        <el-button type="primary" @click="seephotolog2 = false" size="small" v-if="!waitpic">好的</el-button> -->
			</span>
		</el-dialog>

		<el-dialog title="标旗设置" :visible.sync="flaglog" :close-on-click-modal="false" width="600px">
			<div style="display: flex;">
				<div style=" padding:0 20px; position: relative; top: 5px; ">标旗：</div>
				<el-radio-group v-model="flagradio" style="display: flex;">
					<el-tooltip style="margin-right: 20px;" popper-class="tooltip" effect="dark" placement="top"
						v-for="item in flaglist" :key="item.id">
						<div slot="content">{{item.flag}}</div>
						<div>
							<el-radio :label="item.type">
								<span :style="{color:item.color,fontSize:25+'px'}"
									class="iconfont icon-flag-fill"></span>
							</el-radio>
						</div>
					</el-tooltip>
				</el-radio-group>
			</div>
			<div style="display: flex; margin-top: 20px; width: 530px;">
				<div style="padding-left: 20px; position: relative; width: 80px;">备注信息：</div>
				<div class="flagareaContent" v-html="flagarea"></div>
			</div>
			<div style="display: flex; margin-top: 20px; width: 530px;">
				<div style=" padding-left: 20px; position: relative; top: 5px; width: 100px;">添加备注：</div>
				<el-input type="textarea" :rows="3" placeholder="请输入备注" v-model="addflag"></el-input>
			</div>
			<div style="padding-left: 20px; padding-top: 20px;" v-if="amountchai && amountchai.indexOf('-C') != -1"><span
					style="color: #DD2727;">注：</span>当前订单为拆分订单（电商平台购买数量大于2时自动拆分的订单）该操作将同步修改其它拆分关联订单的备注。</div>
			<span slot="footer" class="dialog-footer">
				<el-button type="primary" size="small" @click="flagloggo">确定</el-button>
			</span>
		</el-dialog>

		<el-dialog title="已联系修改" :visible.sync="contactlog" :close-on-click-modal="false" width="600px">
			<div style="display: flex;">确认标记为已联系？</div>

			<span slot="footer" class="dialog-footer">
				<el-button type="primary" @click="contactgo" size="small" :loading="contacting">确定</el-button>
				<el-button type="primary" @click="contactgo2" size="small" :loading="contacting">确认并填写备注</el-button>
			</span>
		</el-dialog>

		<el-dialog title="查看运单信息" :visible.sync="trackinglog" :close-on-click-modal="false" width="600px">
			<div style="display: flex; font-size: 16px; line-height: 30px;">运单公司：{{trackingcom}}</div>
			<div style="display: flex; font-size: 16px; line-height: 30px;">运单号码：{{trackingnum}}</div>
			<span slot="footer" class="dialog-footer">
				<el-button type="primary" size="small" @click="trackinglog = false">好的</el-button>
			</span>
		</el-dialog>

		<el-dialog title="修改商品" :visible.sync="fixprolog" width="30%" :close-on-click-modal="false">
			<div style="padding-right: 30px;">
				<el-form ref="form" @submit.native.prevent :model="form" label-width="150px">
					<el-form-item label="通过商品名称修改:">
						<!-- <el-input
              v-model="fixproname"
              :disabled="fixpronameshow"
              @input="searchproname"
              placeholder="输入商品名称"
            ></el-input> -->
						<el-select v-model="fixproname" clearable :disabled="fixpronameshow" @input="searchproname"
							filterable placeholder="请选择">
							<el-option v-for="item in allprolist" :key="item.id" :label="item.title" :value="item.id">
							</el-option>
						</el-select>
					</el-form-item>

					<el-form-item label="通过商品编码修改:">
						<el-input v-model="fixprocode" :disabled="fixprocodeshow" @input="searchprocode"
							placeholder="输入商品编码"></el-input>
					</el-form-item>
					<el-form-item label="查询结果:">{{fixpronames}}</el-form-item>
				</el-form>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="fixprolog = false">取 消</el-button>
				<el-button type="primary" @click="fixprook()" :loading="fixproing">确 定</el-button>
			</div>
		</el-dialog>
		<el-dialog title="批量修改商品" :visible.sync="fixprolog2" width="30%" :close-on-click-modal="false">
			<div style="padding-right: 30px;">
				<el-form ref="form" @submit.native.prevent :model="form" label-width="150px">
					<el-form-item label="通过商品名称修改:">

						<!--            <el-input v-model="fixproname" :disabled="fixpronameshow" @input="searchproname"  placeholder="输入商品名称"></el-input>
 -->
						<el-select v-model="fixproname" clearable :disabled="fixpronameshow" @input="searchproname"
							filterable placeholder="请选择">
							<el-option v-for="item in allprolist" :key="item.id" :label="item.title" :value="item.id">
							</el-option>
						</el-select>

					</el-form-item>

					<el-form-item label="通过商品编码修改:">
						<el-input v-model="fixprocode" :disabled="fixprocodeshow" @input="searchprocode"
							placeholder="输入商品编码"></el-input>
					</el-form-item>
					<el-form-item label="查询结果:">{{fixpronames}}</el-form-item>
				</el-form>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="fixprolog2 = false">取 消</el-button>
				<el-button type="primary" @click="fixprook2()" :loading="fixproing">确 定</el-button>
			</div>
		</el-dialog>

		<el-dialog title="修改信息" :visible.sync="fixorderlog" :close-on-click-modal="false" width="500px">
			<div>
				<el-form ref="form" @submit.native.prevent :model="form" label-width="90px">
					<div class="log">
						<el-form-item label="收货人">
							<el-input v-model="fixchooselist.address_name" placeholder></el-input>
						</el-form-item>
						<el-form-item label="身份证姓名">
							<el-input v-model="fixchooselist.id_card_name" placeholder></el-input>
						</el-form-item>
						<el-form-item label="身份证号">
							<el-input v-model="fixchooselist.id_card_num" placeholder></el-input>
						</el-form-item>
						<el-form-item label="联系电话">
							<el-input v-model="fixchooselist.address_mobile" placeholder></el-input>
						</el-form-item>



						<el-form-item label="收货地址" class="dz">
							<div style="display: flex;">
								<el-cascader @change="changeaddress" v-model="fixchooselist.city" :options="options" style="width: 180px;margin-right:20px">
								</el-cascader>
								<el-input v-model="fixchooselist.town" placeholder="镇" style=""></el-input>
							</div>
							<el-input v-model="fixchooselist.address" placeholder="详细地址"  style="margin-top: 20px;width: 100%;"></el-input>
              <div style="color: #1989FA; cursor: pointer;" @click="meizhaodao = true">没有找到省市区？手动填写！</div>
              <div style="display: flex;" class="shuruk" v-if="meizhaodao">
                <el-input v-model="fixchooselist.address_province" style="margin-right: 10px;" placeholder="省"></el-input>
                <el-input v-model="fixchooselist.address_city" style="margin-right: 10px;" placeholder="市"></el-input>
                <el-input v-model="fixchooselist.address_district" placeholder="区"></el-input>
              </div>

						</el-form-item>
					</div>
					<div style="padding-left: 20px;" v-if="amountchai && amountchai.indexOf('-C') != -1"><span
							style="color: #DD2727;">注：</span>当前订单为拆分订单（电商平台购买数量大于2时自动拆分订单）该操作将同步修改其它拆分关联订单的订单信息。</div>
				</el-form>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button type="primary" @click="fixorderok()">仅保存</el-button>
				<el-button type="primary" @click="fixorderokandCS()">保存并提交至初审</el-button>
			</div>
		</el-dialog>

		<el-dialog title="加急" :visible.sync="fastlog" :close-on-click-modal="false" width="30%">
			<div>
				<div class="propipei">
					ID为
					<span>{{fixid}}</span>的订单将标记为加急。
				</div>
				<div style="padding-top: 20px;" v-if="amountchai && amountchai.indexOf('-C') != -1"><span
						style="color: #DD2727;">注：</span>当前订单为拆分订单（电商平台购买数量大于2时自动拆分订单）该操作将同步加急其它拆分关联订单。</div>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="fastlog = false">取 消</el-button>
				<el-button type="primary" @click="fastok()">确 定</el-button>
			</div>
		</el-dialog>

		<el-dialog title="放弃订单" :visible.sync="backorderlog" :close-on-click-modal="false" width="30%">
			<div>
				<div class="propipei">
					ID为
					<span>{{fixid}}</span>的订单将被终止流转生产，订单修改后将无法再修改状态及重新提交等，确定放弃订单吗？
				</div>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button @click="backorderlog = false">取 消</el-button>
				<el-button type="primary" @click="backorderok()">确 定</el-button>
			</div>
		</el-dialog>

		<el-dialog title="修改产品结果" :visible.sync="shoplog" :close-on-click-modal="false" width="600px">
			<div>
				<div style="color: #077ECE; line-height: 30px;">成功{{shoplist.success}}条</div>
				<div style="color: #DF3434; line-height: 30px;">
					失败及原因：
					<div v-for="(item,i) in shoplist.error" :key="i">订单ID为:{{i}}的修改结果{{item}}</div>
				</div>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button type="primary" size="small" @click="shoplog = false">好的</el-button>
			</div>
		</el-dialog>

		<el-dialog title="批量留言结果" :visible.sync="meslog" :close-on-click-modal="false" width="600px">
			<div>
				<div style="color: #077ECE; line-height: 30px;">成功{{meslist.success}}条</div>
				<div style="color: #DF3434; line-height: 30px;">
					失败及原因：
					<div v-for="(item,i) in meslist.error" :key="i">订单ID为:{{i}}的留言结果{{item}}</div>
				</div>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button type="primary" size="small" @click="meslog = false">好的</el-button>
			</div>
		</el-dialog>

		<el-dialog title="短信通知" :visible.sync="emaillog" :close-on-click-modal="false" width="1200px">
			<div>
				<div class="emailridio">
					<el-radio-group v-model="emailradio" @change="emailwhich">
						<el-radio-button label="按检索条件发送"></el-radio-button>
						<el-radio-button label="按导入数据发送"></el-radio-button>
					</el-radio-group>
				</div>
				<div class="emailform">
					<el-form ref="form" @submit.native.prevent :model="form" label-width="100px">
						<el-form-item label="检索条件:" v-if="emailwhichshow">
							<div class="emailtj">
								<div class="flex">

									<el-form-item label="订单状态" v-if="form.status != ''">
										<el-select v-model="form.status" clearable placeholder="请选择订单状态"
											disabled="disabled">
											<el-option label="初步审核" value="120"></el-option>
											<el-option label="待完善证件信息" value="150"></el-option>
											<el-option label="待审核" value="200"></el-option>
											<el-option label="待开卡" value="450"></el-option>
											<el-option label="已领取" value="460"></el-option>
											<el-option label="开卡中" value="470"></el-option>
											<el-option label="待发货" value="500"></el-option>
											<el-option label="已发货" value="550"></el-option>
											<el-option label="已退货" value="-700"></el-option>
											<!-- <el-option label="已激活" value="5000"></el-option> -->
                      <el-option label="初审失败" value="-451"></el-option>
											<el-option label="开卡失败" value="-460"></el-option>
											<el-option label="证件不合格待重传" value="-200"></el-option>
											<el-option label="订单终止" value="0"></el-option>
										</el-select>
									</el-form-item>
									<el-form-item label="按照标旗:" v-if="form.flag != ''">
										<el-select v-model="form.flag" clearable placeholder="标旗" disabled="disabled">
											<el-option label="灰" value="0">
												<span style="float: left">
													<div class="color1"></div>
												</span>
												<span class="color1s">灰</span>
											</el-option>
											<el-option label="红" value="1">
												<span style="float: left">
													<div class="color2"></div>
												</span>
												<span class="color2s">红</span>
											</el-option>
											<el-option label="黄" value="2">
												<span style="float: left">
													<div class="color3"></div>
												</span>
												<span class="color3s">黄</span>
											</el-option>
											<el-option label="绿" value="3">
												<span style="float: left">
													<div class="color4"></div>
												</span>
												<span class="color4s">绿</span>
											</el-option>
											<el-option label="蓝" value="4">
												<span style="float: left">
													<div class="color5"></div>
												</span>
												<span class="color5s">蓝</span>
											</el-option>
											<el-option label="紫" value="5">
												<span style="float: left">
													<div class="color6"></div>
												</span>
												<span class="color6s">紫</span>
											</el-option>
										</el-select>
									</el-form-item>
									<el-form-item label="是否联系:" v-if="form.is_called != ''">
										<el-select v-model="form.is_called" clearable placeholder="是否联系"
											disabled="disabled">
											<el-option label="未联系" value="0">未联系</el-option>
											<el-option label="已联系" value="1">已联系</el-option>
										</el-select>
									</el-form-item>
									<el-form-item label="交易状态" v-if="form.refund_status != ''">
										<el-select v-model="form.refund_status" clearable placeholder="交易状态"
											disabled="disabled">
											<el-option label="正常" value="100">正常</el-option>
											<el-option label="退款中" value="200">退款中</el-option>
											<el-option label="退款成功" value="300">退款成功</el-option>
                      <el-option label="已支付" value="800">已支付</el-option>
                      <el-option label="待支付" value="900">待支付</el-option>
										</el-select>
									</el-form-item>
								</div>

								<div class="flex">
									<el-form-item label="订单来源:" v-if="form.source != ''">
										{{form.source}}
									</el-form-item>
									<el-form-item label="订单ID:" v-if="form.order_id != ''">
										{{form.order_id}}
									</el-form-item>
									<el-form-item label="外部订单编号:" v-if="form.source_id != ''">
										{{form.source_id}}
									</el-form-item>


									<el-form-item label="商品编码:" v-if="form.good_sku != ''">
										{{form.good_sku}}
									</el-form-item>
								</div>

								<div class="flex">
									<el-form-item label="身份证号:" v-if="form.id_card_num != ''">
										{{form.id_card_num}}
									</el-form-item>
									<el-form-item label="生产号码:" v-if="form.mobile_produced != ''">
										{{form.mobile_produced}}
									</el-form-item>
									<el-form-item label="物流单号:" v-if="form.tracking_number != ''">
										{{form.tracking_number}}
									</el-form-item>
									<el-form-item label="收件人电话:" v-if="form.address_mobile != ''">
										{{form.address_mobile}}
									</el-form-item>
								</div>
								<div class="flex">
									<el-form-item label="激活状态" v-if="form.active_status != ''">
										<el-select v-model="form.active_status" clearable placeholder="激活状态"
											disabled="disabled">
											<el-option label="无" value="0">无</el-option>
											<el-option label="已激活" value="100">已激活</el-option>
											<el-option label="激活且充值" value="200">激活且充值</el-option>
										</el-select>
									</el-form-item>
									<el-form-item label="时间选择" v-if="form.active_status != ''">
										<el-select v-model="form.timems" @change="timemschange" placeholder="时间选择"
											disabled="disabled">
											<el-option label="状态变更时间" value="0">状态变更时间</el-option>
											<el-option label="用户下单时间" value="1">用户下单时间</el-option>
											<el-option label="平台创建时间" value="2">平台创建时间</el-option>
                      <el-option label="激活时间" value="3">平台创建时间</el-option>
										</el-select>
										<el-date-picker disabled="disabled" style="width: 470px;" v-model="form.time"
											@change="timechange" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange"
											range-separator="——" start-placeholder="开始日期" end-placeholder="结束日期">
										</el-date-picker>
									</el-form-item>
								</div>
							</div>
						</el-form-item>
						<el-form-item label="导入数据:" v-if="!emailwhichshow" class="emailupload">
							<div class="flex">
								<upload-excel-component @on-selected-file="exportData" class="btnp" buttonName="导入数据">
								</upload-excel-component>
								<span class="emaildown" @click="emaildown">下载模板</span>
							</div>
						</el-form-item>
						<el-form-item label="共计条数:">
							{{emailtotal}}条
						</el-form-item>
						<el-form-item label="短信签名:">
							号卡生产平台
						</el-form-item>
						<el-form-item label="短信内容:">
							<div>已输入<span class="red">{{emailnum}}</span>个字，共计<span class="red">
									{{emailye}}</span>条短信。计费规则焦点显示：70字记一条短信费，超出70字则以70字每条计费。</div>
							<el-input type="textarea" :rows="5" @input="emailjisuan" placeholder="请输入内容"
								v-model="emailtextarea"></el-input>
							<div class="emailps">
								<div>温馨提示： </div>
								<div>1) 请留意短信内的敏感字词，例如：联通、电信、移动等可能导致短信被运营商拦截。 </div>
								<div>2) 短信内容包含：特卖、优惠、限时等营销词语可能会被手机安全软件拦截。 </div>
								<div>3) 禁止发送加QQ、加微信、招聘兼职、招商、代理相关内容的短信。</div>
							</div>
						</el-form-item>
						<div class="emailfoot">
							<div class="" v-if="emailradio == '按检索条件发送'">
								<el-button type="danger" size="small" @click="emailsend">确认发送</el-button>
							</div>
							<div class="" v-if="emailradio != '按检索条件发送'">
								<el-button type="danger" size="small" @click="emailsendm">确认发送</el-button>
							</div>
							<div class="emails"><span>当前余额：{{emailyu}}条</span><span class="emailchongzhi"
									@click="emailchongzhi">充值短信</span></div>
						</div>
					</el-form>
				</div>

			</div>

		</el-dialog>
		<el-dialog title="短信充值" :visible.sync="rechargelog" :close-on-click-modal="false" width="1000px">
			<div>
				<div class="emailridio">
					<el-radio-group v-model="rechargeradio" @change="rechargewhich">
						<el-radio-button label="短信充值"></el-radio-button>
						<el-radio-button label="充值记录"></el-radio-button>
					</el-radio-group>
				</div>
				<div class="list" v-if="rechargeradio == '短信充值'">
					<div class="flex">
						<div class="listth">充值条数</div>
						<div class="listth">单价</div>
						<div class="listth">总价</div>
						<div class="listth">操作</div>
					</div>

					<div class="flex" v-for="item in rechargelist" :key="item.id">
						<div class="listtd">{{item.text_amount}}</div>
						<div class="listtd">约{{item.per_amount}}分/条</div>
						<div class="listtd">{{item.amount}}</div>
						<div class="listtd rechargego" @click="rechargego(item.id)">立即充值</div>
					</div>

				</div>
				<div class="list" v-if="rechargeradio != '短信充值'">
					<div class="flex">
						<div class="listth">交易流水号</div>
						<div class="listth">充值金额</div>
						<div class="listth">充值条数</div>
						<div class="listth">充值前条数</div>
						<div class="listth">充值后条数</div>
						<div class="listth time">付款时间</div>
					</div>

					<div class="flex" v-for="item in rechargemlist" :key="item.id">
						<div class="listtd">{{item.id}}</div>
						<div class="listtd">{{item.total}}</div>
						<div class="listtd">{{item.product_id}}</div>
						<div class="listtd">{{item.before}}</div>
						<div class="listtd">{{item.after}}</div>
						<div class="listtd time">{{item.updated_at}}</div>
					</div>
				</div>
			</div>
		</el-dialog>

		<el-dialog title="多个订单ID搜索" :visible.sync="duoxuanlog" :close-on-click-modal="false" width="600px">
      <div style=" margin-bottom: 20px;">可单输入订单ID或外部单号，不可混合输入</div>
			<div>
				<el-input type="textarea" :rows="10" placeholder="一行一个，可直接粘贴excel纵列数据" v-model="duoxuanids"></el-input>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button type="primary" size="small" @click="search2(999)">搜索</el-button>
			</div>
		</el-dialog>

    <!-- <el-dialog title="多个外部订单号批量检索" :visible.sync="waibulog" :close-on-click-modal="false" width="600px">
    	<div>
    		<el-input type="textarea" :rows="10" placeholder="一行一个，可直接粘贴excel纵列数据" v-model="waibuids"></el-input>
    	</div>
    	<div slot="footer" class="dialog-footer">
    		<el-button type="primary" size="small" @click="search2">搜索</el-button>
    	</div>
    </el-dialog> -->

    <el-dialog title="多个身份证号搜索" :visible.sync="duoxuanlogx" :close-on-click-modal="false" width="600px">
    	<div>
    		<el-input type="textarea" :rows="10" placeholder="一行一个，可直接粘贴excel纵列数据" v-model="duoxuanidsx2"></el-input>
    	</div>
    	<div slot="footer" class="dialog-footer">
    		<el-button type="primary" size="small" @click="search2">搜索</el-button>
    	</div>
    </el-dialog>
		<!-- <el-dialog title="多个商品编码" :visible.sync="duoxuanlog2" :close-on-click-modal="false" width="1200px">
			<el-input  v-model="search_pages_id" @input='search_pages_ids' style="margin-bottom: 20px; width: 280px;"></el-input>
			<el-checkbox-group v-model="form.pages_ids" >
			    <el-checkbox v-for="item in allprolist3" :key="item.id" :label="item.id">{{item.fetch_code}}</el-checkbox>
			  </el-checkbox-group>

			<div slot="footer" class="dialog-footer">
				<el-button type="primary" size="small" @click="duoxuanlog2 = false">确认</el-button>
			</div>
		</el-dialog> -->
		<el-dialog title="多个生产号码搜索" :visible.sync="duoschm" :close-on-click-modal="false" width="600px">
    	<div>
    		<el-input type="textarea" :rows="10" placeholder="一行一个，可直接粘贴excel纵列数据" v-model="duoschminput"></el-input>
    	</div>
    	<div slot="footer" class="dialog-footer">
    		<el-button type="primary" size="small" @click="search2">搜索</el-button>
    	</div>
    </el-dialog>
	<el-dialog title="多个收件人电话搜索" :visible.sync="duosjdh" :close-on-click-modal="false" width="600px">
    	<div>
    		<el-input type="textarea" :rows="10" placeholder="一行一个，可直接粘贴excel纵列数据" v-model="duosjdhinput"></el-input>
    	</div>
    	<div slot="footer" class="dialog-footer">
    		<el-button type="primary" size="small" @click="search2">搜索</el-button>
    	</div>
    </el-dialog>
    <bianmaquanxuan ref="bianmaquanxuan" @bianmaquanxuans="bianmaquanxuans" v-if="bianmaquanxuanshow" ></bianmaquanxuan>

		<el-dialog title="请输入导出密码" :visible.sync="mimalog" width="400px" :close-on-click-modal="false">
			<div style="padding-right: 30px;">
				<el-input v-model="mima" show-password placeholder="请输入导出密码"></el-input>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button size="medium" type="primary" @click="mimaqueren">确 定</el-button>
				<el-button size="medium" type="text" @click="mimachongzhilog = true">重设密码</el-button>
			</div>
		</el-dialog>

		<el-dialog title="请设置导出密码" :visible.sync="mimasetlog" width="400px" :close-on-click-modal="false">
			<!--          <div style="padding-right: 30px; margin-bottom: 20px;">
               <el-input v-model="mimashoujihao" disabled placeholder="请输入验证码"></el-input>
          </div>
          <div style="padding-right: 30px; margin-bottom: 20px; position: relative;">
               <el-input v-model="mimacode"  placeholder="请输入验证码"></el-input>
               <el-button style="padding: 9px 30px; position: absolute; right: 31px; top: 1px;"  type="danger" @click="getcode" :disabled="jinyong" size="mini">{{tishi}}</el-button>
          </div> -->
			<div style="padding-right: 30px; margin-bottom: 20px;">
				<el-input v-model="mimaset" show-password placeholder="请设置导出密码"></el-input>
			</div>
			<div style="padding-right: 30px;">
				<el-input v-model="mimaset2" show-password placeholder="请再次输入确认导出密码"></el-input>
			</div>
			<div style="color: #DF3434; margin-top: 10px;">为了您的订单数据安全，即日起所有批量导出数据的出口需输入导出密码才可导出，请与联系店铺负责人协商设置该密码</div>
			<div slot="footer" class="dialog-footer">
				<el-button size="medium" @click="mimasetlog = false">取 消</el-button>
				<el-button size="medium" type="primary" @click="mimasetqueren">确 定</el-button>
			</div>
		</el-dialog>

		<el-dialog title="重设导出密码" :visible.sync="mimachongzhilog" width="400px" :close-on-click-modal="false">
			<div style="padding-right: 30px; margin-bottom: 20px;">
				<el-input v-model="mimashoujihao" disabled placeholder="请输入验证码"></el-input>
			</div>
			<div style="padding-right: 30px; margin-bottom: 20px; position: relative;">
				<el-input v-model="mimacode" placeholder="请输入验证码"></el-input>
				<el-button style="padding: 9px 30px; position: absolute; right: 31px; top: 1px;" type="danger"
					@click="getcode" :disabled="jinyong" size="mini">{{tishi}}</el-button>
			</div>
			<div style="padding-right: 30px; margin-bottom: 20px;">
				<el-input v-model="mimaset" show-password placeholder="请输入新密码"></el-input>
			</div>
			<div style="padding-right: 30px;">
				<el-input v-model="mimaset2" show-password placeholder="请确认新密码"></el-input>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button size="medium" @click="mimachongzhilog = false">取 消</el-button>
				<el-button size="medium" type="primary" @click="mimaqueren2">确 定</el-button>
			</div>
		</el-dialog>

		<el-dialog title="订单放行" :visible.sync="shuadanlog" width="400px" :close-on-click-modal="false">
			<div>
				<el-select v-model="dianpusource" clearable placeholder="请选择店铺"
					style="margin-bottom: 10px; width: 100%;">
					<el-option v-for="item in dianpulist" :key="item.id" :label="item.source +'-'+ item.shop_name"
						:value="item.source +'-'+ item.shop_name"></el-option>
				</el-select>
				<el-date-picker v-model="shuadanendtime" value-format="yyyy-MM-dd HH:mm:ss" style="margin-right: 20px;"
					type="datetime" placeholder="选择放行截止时间"></el-date-picker>
				之前的订单放行
			</div>

			<div slot="footer" class="dialog-footer">
				<el-button size="medium" @click="shuadanlog = false">取 消</el-button>
				<el-button size="medium" type="primary" @click="zhengchang">确 定</el-button>
			</div>
		</el-dialog>

		<el-dialog title="导入结果" :visible.sync="daorulog" width="600px" :close-on-click-modal="false">
			<div v-loading='daoruing'>
				<div style="color: #229453; font-size: 16px; padding-bottom: 20px;">成功条数：{{daoruok}}</div>
				<div style="color: #F56C6C; font-size: 16px; padding-bottom: 20px; line-height: 30px;">失败及原因：
					<div v-for="item in daorulist" :key="item" style="padding-left: 20px;">
						{{item}}
					</div>
				</div>
			</div>
			<span slot="footer" class="dialog-footer">
				<el-button type="primary" size="small" @click="daorulog = false">好的</el-button>
			</span>
		</el-dialog>

    <el-dialog title="批量复制" :visible.sync="fuzhilog" width="600px" :close-on-click-modal="false">
      <div style="margin-bottom: 20px;">
          <el-radio v-model="fuzhiradio" label="1">按当前选择复制</el-radio>
          <el-radio v-model="fuzhiradio" label="2">按导入表格复制</el-radio>
      </div>
    	<div style="display: flex;align-items: center;margin-bottom: 20px;" v-if="fuzhiradio == 2">
        <el-upload ref="upload" action="#" :before-upload="uploasd" :show-file-list="false"
                    accept=".xlsx,.xls">
                    <el-button type="danger">
                      导入批量复制的订单
                    </el-button>
                  </el-upload>
              <el-button type="text" @click="downfuzhi" style="margin-left: 20px;">
                下载模板
              </el-button>
      </div>

      <div style="display: flex;align-items: center;flex-wrap: wrap;margin-bottom: 20px;"  v-if="fuzhiradio == 1">已选中的订单号：
        <div v-for="item in danxuans" :key="item" style="margin-right: 20px;">
          {{item}}
        </div>
      </div>

      <div style="display: flex;align-items: center;flex-wrap: wrap;margin-bottom: 20px;" v-if="fuzhi_orders != '' && fuzhiradio == 2">已导入的订单号：
        <div v-for="item in fuzhi_orders" :key="item" style="margin-right: 20px;">
          {{item}}
        </div>
        <el-button type="primary" size="small" @click="fuzhi_orders = []">清空导入</el-button>
      </div>
      <div style="display: flex;align-items: center;margin-bottom: 20px;">
        选择复制到的商品：
        <el-select v-model="fuzhi_page_id" clearable filterable
        	placeholder="请选择">
        	<el-option v-for="item in allprolist" :key="item.id" :label="item.fetch_code"
        		:value="item.id"></el-option>
        </el-select>

      </div>
    	<span slot="footer" class="dialog-footer">
    		<el-button type="primary" size="small" @click="fuzhilog = false">关闭</el-button>
        <el-button type="primary" size="small" @click="fuzhigo">确定</el-button>
    	</span>
    </el-dialog>

		<el-dialog title="按身份证识别刷单" :visible.sync="shenfenzheng.log" :close-on-click-modal="false" width="600px">
			<div>
				<div class="flex">
					<div class="f1" style="line-height: 26px; margin-right: 30px;">刷单身份证号:</div>
					<div class="f2">
						<div class="flex" style="margin-bottom: 10px;" v-for="(item,index) in shenfenzheng.list"
							:key="index">
							<div style="line-height: 26px; margin-right: 30px;">{{item.id_card_num}}</div>
							<el-button type="danger" style="padding: 5px 10px !important;" size="mini"
								@click="shanchusfz(item.id)">删除</el-button>
						</div>
						<div class="flex">
							<el-input v-model="shenfenzheng.hao" placeholder="请输入身份证号"></el-input>
							<el-button type="primary" size="mini" @click="addsfz" style="margin-left: 20px;">添加
							</el-button>
						</div>

					</div>
				</div>
				<div style="margin-top: 30px;">原理：刷手刷单填写指定的身份证号（上方设置的），系统检测到订单的身份证号为设置的刷单
					号码则直接判断为刷单订单，并打入小黑屋待清理</div>
			</div>
		</el-dialog>

    <el-dialog title="放弃订单确认" :visible.sync="tuikuanlog" :close-on-click-modal="false" width="800px">
      <div>
        <el-radio v-model="tuikuanall.is_refund_money" :label="0">仅放弃订单</el-radio>
        <el-radio v-model="tuikuanall.is_refund_money" :label="1">放弃订单并退款</el-radio>
      </div>

      <span slot="footer" class="dialog-footer">
        <el-button @click="tuikuanlog = false">取 消</el-button>
        <el-button type="primary" @click="tuikuankaiqi">确 定</el-button>
      </span>
    </el-dialog>
		<!-- <foot></foot> -->
		<!-- 修改号码 -->
		<el-dialog
		title="修改购买号码"
		:visible.sync="showchangenum"
		width="500px">
			<div style="display:flex;align-items: center;">
				<el-radio v-model="choosetype" :label="1">修改号码：</el-radio>
				<el-input v-model="change_input" size="small" type="number" oninput="if(value.length>11){value=value.slice(0,11)}" style="width:300px" placeholder="请输入电话"></el-input>
			</div>
			<div style="display:flex;margin-top: 20px;margin-bottom: 20px;">
				<el-radio v-model="choosetype" :label="2">使用随机号</el-radio>
			</div>
			<div style="text-align:center">
				<el-button type="primary" @click="upchange">保存并重提</el-button>
			</div>
		</el-dialog>

    <el-dialog title="可单输入订单ID或外部单号，不可混合输入" :visible.sync="duoxuanlog3" :close-on-click-modal="false" width="600px">
    	<div>
    		<el-input type="textarea" :rows="10" placeholder="一行一个，可直接粘贴excel纵列数据" v-model="duoxuanids3"></el-input>
    	</div>
    	<div slot="footer" class="dialog-footer">
    		<el-button type="primary" size="small" @click="search2">搜索</el-button>
    	</div>
    </el-dialog>
    <el-dialog center  title="物流详情" :visible.sync="wuliuxiangqinglog" width="600px" :close-on-click-modal="false">
    	<div v-if="wuliuxiangqingall.Traces">
        <el-timeline>
            <el-timeline-item v-for="(activity, index) in wuliuxiangqingall.Traces" :key="index" :timestamp="activity.AcceptTime">
              {{activity.AcceptStation}}
            </el-timeline-item>
          </el-timeline>
    	</div>
      <div v-if="wuliuxiangqingall.Reason">{{wuliuxiangqingall.Reason}}</div>
    	<div slot="footer" class="dialog-footer">
    		<el-button type="danger" round @click="wuliuxiangqinglog = false">确 定</el-button>
    	</div>
    </el-dialog>
    <el-dialog center  title="订单流转" :visible.sync="liuzhuanlog" width="600px" :close-on-click-modal="false">
    	<div class="kflexc" style="color: #333;">
        未就绪订单自动流转生产
        <el-switch v-model="order_produce_without_pay" style="width: 85px; height: 41px; margin-left: 10px;"  :active-value="1" :inactive-value="0"></el-switch>
      </div>
      <div>
        敢探号商城(包含小程序)，如果订单需要付款而用户未付款的订单，在敢探号中订单状态为:未就绪(交易状态:未支付)，该状态的订单不会自动流转生产您可单独提交初审流转生产，开启该按钮表示这部分未付款的订单作为正常订单流转生产
      </div>
    	<div slot="footer" class="dialog-footer">
    		<el-button type="danger" round @click="liuzhuango">保存配置</el-button>
    	</div>
    </el-dialog>
	<!-- 投诉弹窗 -->
	<tousuwindow :isshowwindow="isshowwindow" @creategd="creategd" @creategdhide="creategdhide" :tousuid="tousuid" />
	<!-- 没有开启物流功能 -->
	<el-dialog
	title="物流轨迹查询功能未开启"
	:center="true"
	:visible.sync="isshowwuliu"
	width="630px">

		<div style="width: 500px;margin-left:auto;margin-right: auto;">
			如需开启该功能请联系主账号在右上角的设置——物流轨迹查询中开启该功能，
			<br />该功能为收费功能
		</div>
		<div style="text-align:center;margin-top:40px">
			<el-button type="danger" round @click="isshowwuliu = false">关闭</el-button>
		</div>

	</el-dialog>
		<!-- 查看转 -->
		<el-dialog
		title="转单记录"
		:visible.sync="isshowzhuan"
		width="900px">
			<el-table
			:data="zhuanData"
			style="width: 100%">
				<el-table-column
					prop="page_title"
					label="原套餐商品名称"
					align="center">
				</el-table-column>
				<el-table-column
					prop="page_fetch_code"
					label="原套餐商品编码"
					align="center">
				</el-table-column>
        <el-table-column
        	prop="producer"
        	label="供应商"
        	align="center">
        </el-table-column>
				<el-table-column
					prop="to_page_title"
					label="转单套餐商品名称"
					align="center">
				</el-table-column>
				<el-table-column
					prop="to_page_fetch_code"
					label="转单套餐商品编码"
					align="center">
				</el-table-column>
				<el-table-column
					prop="created_at"
					label="时间"
					align="center">
				</el-table-column>
			</el-table>
		<div style="text-align: center;margin-top:30px ;">
			<el-button type="primary" @click="isshowzhuan = false">确 定</el-button>
		</div>
		</el-dialog>

    <el-dialog title="京东退款" :visible.sync="jingdonglog" :close-on-click-modal="false" width="440px">
    	<div>
    		<el-input type="textarea" v-model="jingdongall.backStatusDesc" :rows="5" placeholder="请输入退款原因" ></el-input>
    	</div>
      <div style="color:#2974FF margin-top: 20px;">注：该原因会展示给下单用户</div>
    	<div slot="footer" class="dialog-footer">
    		<el-button type="danger" round @click="jingdonggo">确定</el-button>
    	</div>
    </el-dialog>

    <el-dialog title="功能开通" :visible.sync="jingdonglog2" :close-on-click-modal="false" width="440px">
    	<div style="color: rgb(102, 102, 102); margin-bottom: 20px;">
    		您还未开通该功能，该功能需要单独在您的天幕端配置代码，请联系客服付费审请开通该功能
    	</div>
      <div style="color: rgb(102, 102, 102); margin-bottom: 20px;">
        功能作用：京东平台的订单在开卡失败或用户拒收后可操作主动退款。
      </div>

    	<div slot="footer" class="dialog-footer">
    		<el-button type="danger" round @click="jingdonglog2 = false">确定</el-button>
    	</div>
    </el-dialog>
	<el-dialog
		title="提示"
		:visible.sync="isshowzeng"
		width="400px">
		<div>原订单ID：{{ zengid }}</div>
	</el-dialog>

  <el-dialog title="多个订单来源搜索" :visible.sync="duoxuanlog9" :close-on-click-modal="false" width="600px">
  	<div>
  		<el-input type="textarea" :rows="10" placeholder="一行一个，可直接粘贴excel纵列数据" v-model="duoxuanids9x"></el-input>
  	</div>
  	<div slot="footer" class="dialog-footer">
  		<el-button type="primary" size="small" @click="search2">搜索</el-button>
  	</div>
  </el-dialog>
  <shengchanhaoma v-if="shengchanhaomaall.shengchanhaomashow" ref="shengchanhaomalog" :id="shengchanhaomaall.shengchanhaomaid"></shengchanhaoma>

  <orderDetail v-if="orderdetailall.show" ref="orderdetailalllog" @guanbi="guanbi" :id="orderdetailall.id"></orderDetail>

  <daochulogs v-if="daochulogsall.show" ref="daochulogs" @daochulogsguanbi="daochulogsguanbi" :type="1" ></daochulogs>

	</div>
</template>

<script>
	import axios from "axios";

  import daochulogs from "./zujian/daochu.vue";
  import orderDetail from "./zujian/orderDetail.vue";
  import shengchanhaoma from "./zujian/shengchanhaoma.vue";
  import dianjichakan from "./zujian/dianjichakan.vue";
  import bianmaquanxuan from "./zujian/bianmaquanxuan.vue";
  import tousuwindow from "./tousuwindow.vue";
	import top from "@/components/top.vue";
	import left from "@/components/left.vue";
	import foot from "@/components/foot.vue"
	import UploadExcelComponent from "@/components/UploadExcel/index.vue";
  import { BodyGuard } from '@open-fxg/bodyguard-vue2'
  import {
    read,
    utils
  } from 'xlsx'
	import {
		regionData,
    provinceAndCityData,
		CodeToText,
		TextToCode
	} from "element-china-area-data";
	import moment from "moment";


	export default {
		components: {
			left: left,
			top: top,
			foot: foot,
			UploadExcelComponent,
      dianjichakan,
      bianmaquanxuan,
      tousuwindow,
      BodyGuard,
      shengchanhaoma,orderDetail,daochulogs
		},
		name: "order_question",
		data() {
			return {
        daochulogsall:{
          show:false,
        },
        drawer:false,
        orderdetailall:{
          id:"",
          show:false
        },
        shengchanhaomaall:{
          shengchanhaomashow:false,
          shengchanhaomaid:""
        },
        jingdonglog:false,
        jingdonglog2:false,
        jingdongall:{
          id:"",
          backStatusDesc:""
        },

        wuliuxiangqinglog:false,
        wuliuxiangqingall:"",

        duoxuanids3:"",
        duoxuanids4:"",
        duoxuanlog3:false,
        tuikuanlog:false,
        tuikuanall:{
          ids:"",
          is_refund_money:0,
          status:0
        },
        fuzhiradio:'1',
				l04: false,
				shenfenzheng: {
					list: "",
					log: false,
					hao: ""
				},
				daochutishi: false,
				// pickerOptions0: {
				// 	disabledDate(time) {
				// 		let curDate = (new Date()).getTime();
				// 		let three = 31 * 24 * 3600 * 1000;
				// 		let threeMonths = curDate - three;
				// 		return time.getTime() > Date.now() || time.getTime() < threeMonths;;
				// 	}
				// },
        pickerOptions: {
                  shortcuts: [{
                    text: '最近一周',
                    onClick(picker) {
                      const end = new Date();
                      const start = new Date();
                      start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
                      picker.$emit('pick', [start, end]);
                    }
                  }, {
                    text: '最近一个月',
                    onClick(picker) {
                      const end = new Date();
                      const start = new Date();
                      start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
                      picker.$emit('pick', [start, end]);
                    }
                  }, {
                    text: '最近三个月',
                    onClick(picker) {
                      const end = new Date();
                      const start = new Date();
                      start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
                      picker.$emit('pick', [start, end]);
                    }
                  }]
                },
				amountchai: "",
				moredo: "",
				rechargemlist: "",
				rechargelist: "",
				rechargelog: false,
				rechargeradio: "短信充值",
				emailtotal: 0,
				emaillist: "",
				emailyu: 0,
				emailwhichshow: true,
				emailye: 1,
				emailnum: 0,
				emailtextarea: "",
				emailradio: '按检索条件发送',
				emailform: "",
				emaillog: false,
				export_data: "批量导入放弃",
				contacting: false,
				daochuing: false,
				daochuingz: "导出订单",
				progressVisible: false,
				percentage: 10,
				waitpic: false,
				repphotolog: false,
				flaglog: false,
				flagradio: 0,
				flagarea2: "",
				flagarea: "",
				addflag: '',
				seephotolog2: false,
				seephotoloading: false,
				city: "",
				options: regionData,
				seephotolog: false,
				contactlog: false,
				contactid: "",
				trackinglog: false,

				danxuans: [],
				quanxuana: false,
				quanxuans: [],

				shaixuan: [],

				total: 0,
				page: 1,
				page_size: 20,

				loading: true,
				shennum: 0,
				kainum: 0,
				tuinum: 0,
				wait_photos: 0,
				deliver_fail: 0,
				autofailnum: 0,
				xinwang_photo: 0,
				xinwang: "",
				profailnum: 0,
				shuadannum: 0,

				color: "",
				form: {
          supplier:"",
					iccid: "",
					status: "",
          statuses: [],
					flag: "",
					source: [],
          source_type:[],
					source_id: "",
					id_card_num: "",
					amount: "",
					orderby: "",
					export: "",
					product_id: "",
					good_sku: "",
					deliver_fail: "",
					is_called: "",
					refund_status: "",
					order_id: "",
					mobile_produced: "",
					tracking_number: "",
					address_mobile: "",
					order_at_start: "",
					order_at_end: "",
					status_at_start: "",
					status_at_end: "",
          activated_start:"",
          activated_end:"",
					start: "",
					end: "",
					time: "",
					timems: "2",
					active_status: "",
					pages_ids: "",
          sub_source:"",
          is_auto_order_transfer:'',
          is_changed:"",
          sources:[],
          province:"",
          city:"",
          order_transfer_and_change:"3",
          nickname:""
				},
				list: [],
				choose: {
					id_card_name: "",
					id_card_num: "",
					address_name: "",
					address_mobile: "",
					address: "",
					face: "",
					back: "",
					hand: "",
					id: "",
					orderid: ""
				},
				which: "",

				func_I02: false,
				func_U: false,
				act: 1,
				desc: true,
				orderby: 1,

				memo: "",
				seememolog: false,

				flaglist: [],
				trackingcom: "",
				trackingnum: "",

				fixid: "",
				fixchooselist: {},

				fixprolog2: false,
				shoplog: false,
				shoplist: [],
				fixproing: false,

				fixprolog: false,
				backorderlog: false,
				probacklog: false,
				fastlog: false,
				fixorderlog: false,
				backprolog: false,
				whiteprolog: false,

				fixpronameshow: false,
				fixprocodeshow: false,
				fixproname: "",
				fixprocode: "",
				fixpronames: "",
				fixproid: "",



				meslog: false,
				meslist: "",

				srcxian: "./static/img/shuxian.png",
				srcali: "./static/img/ali.png",
				tmall: "test",

				repgoing: false,
				daochulog: false,
				daochuflag: "",

				allprolist: [],
				allprolist2: [],
				allprolist3: [],
				clearable: true,
				nowpicstatus: 0,
				scsource_id: "",

				urlStatus: false, //控制复制链接
				can_upload: false, //能否上传照片

				duoxuanlog: false,
        duoxuanlogx: false,
				duoxuanlog2:false,

        duoxuanlog9: false,
        duoxuanids9: "",
        duoxuanids9x:"",
        source_types:[],
        laiyuans:[],

				duoxuanids: "",
				duoxuanids2: "",
        duoxuanidsx:"",
        duoxuanidsx2:"",
		duoschminput:'',
		duoschminput2:'',
		duosjdhinput:'',
		duosjdhinput2:'',

				mimalog: false,
				mima: "",
				mimaid: "",
				mimasetlog: false,
				mimaset: "",
				mimaset2: "",
				mimachongzhilog: false,
				mimashoujihao: "",
				mimacode: "",
				count: 60,
				tishi: "获取验证码",
				jinyong: false,

				shuadanendtime: "",
				shuadanlog: false,
				url: "",
				daorulog: false,
				daoruok: 0,
				daorulist: [],
				daoruing: false,
				dianpusource: "",
				dianpulist: "",
				search_pages_id:"",

        fuzhilog:false,
        fuzhi_page_id:"",
        fuzhi_orders:[],
        bianmaquanxuanshow:false,
        meizhaodao:false,
        user:"",
        showchangenum:false,
        choosetype:1,
        change_input:'',
        change_num_id:'',
        ischange:0,
        //是否展示投诉弹窗
        isshowwindow:false,
        //投诉订单id
        tousuid:'',
        shop_id:"",
        douyintoken:"",
        isshowwuliu:false,
        isshowzhuan:false,
        zhuanData: [],
        liuzhuanlog:false,
        order_produce_without_pay:0,
        sources:"",
        duoschm:false,
        duosjdh:false,
        chakanwanzhengxinxi:false,

        never_deliver:"",
        isshowzeng:false,
        zengid:'',
        citylist:[],
        sousuoshenme:"",
        sousuoshenme2:"",
        sousuoshenme3:""
			};
		},
    beforeDestroy() {
      document.onkeydown = null
    },
		created() {

      this.citylist = JSON.parse(JSON.stringify(provinceAndCityData))
      // this.citylist.unshift({
      //   label: "全国归属地随机",
      //   value: "99999",
      //   children: []
      // })
      // this.citylist.unshift({
      //   label: "全国归属地",
      //   value: "99998",
      //   children: []
      // })


			//地址配置,用于下载模板
			if (window.location.href.indexOf("91haoka_platform") > -1) {
				console.log("线上项目，谨慎操作。")
				this.url = window.location.origin + "/91haoka_platform/"
			} else {
				this.url = ""
			}
			//按回车键搜索
			var that = this;

			document.onkeydown = function(e) {
				var ev = document.all ? window.event : e;
        if(!that.duoxuanlog && !that.duoxuanlogx && !that.duoxuanlog2 && !that.duoxuanlog9 && !that.duoschm && !that.duosjdh && !that.duoxuanlog3){
          if (ev.keyCode == 13 ) {
          	that.search();
          }
        }
			};

      axios.get('/api/form/channels?page_size=300')
        .then(response => {
          if (response.data.msg.code == 0) {
            this.source_types = response.data.data.data
          } else {
            this.$message.error(response.data.msg.info);
          }
        })

			//获取所有产品
			axios.get("/api/gth/order-pages?_page_size=5000")
				.then(response=> {
					if (response.data.msg.code == 0) {
						this.allprolist2 = response.data.data.data
						this.allprolist3 = response.data.data.data
            this.form.prolist = response.data.data.data;
					}
				})
			//获取所有产品
			axios.get("/api/gth/order-pages?status=100&_page_size=2000")
				.then(function(response) {
					if (response.data.msg.code == 0) {
						that.allprolist = response.data.data.data
					}
				})

			//第一次加载设置一个默认的时间一个月  不然太卡
			this.form.end = moment()
				.add(1, "days")
				.format("YYYY-MM-DD 00:00:00");
			this.form.start = moment()
				.subtract(7, "days")
				.format("YYYY-MM-DD 00:00:00");

			this.form.time = [this.form.start, this.form.end];

			this.getlist();
			this.getflag();
			// this.getprolist();
			//获取手机号，下载重置密码使用
			this.getshoujihao()
			this.getdianpu()
			this.getshenfenzhenglist()

			//权限问题
			var user = JSON.parse(localStorage.getItem("USER"));
			this.user = user

      this.user.functions.forEach(item => {
        if(item.code == 'I05'){
          this.chakanwanzhengxinxi = true
        }
        if(item.code == 'I02'){
          this.func_I02 = true
        }
        // if(item.code == 'I'){
        //   this.l04 = true
        // }
        if(item.code == 'l04'){
          this.l04 = true
        }
        if(item.code == 'U'){
          this.func_U = true
        }
      })



			//导出密码
			if (localStorage.getItem("daochumima") != null) {
				this.mima = localStorage.getItem("daochumima")
			}


			//获取店铺id
			axios.get("/api/gth/user/shop").then(response => {
				if (response.data.msg.code == 0) {
					that.shop_id = response.data.data.shop_id;
				} else {
					if (response.data.msg.code == 50401) {
						that.$router.push({
							path: "/login"
						});
						return false;
					}
					that.$message.error(response.data.msg.info);
				}
			});
      //获取来源 搜索下拉用
      this.getlaiyuan()

      this.getlaiyuan2()
		},
		mounted() {
			//获取店铺id
			// axios.get("/api/gth/user/shop").then(response => {
			//   if (response.data.msg.code == 0) {
			//     this.shop_id = response.data.data.shop_id;
			//   } else {
			//     this.$message.error(response.data.msg.info);
			//   }
			// });

		},
		methods: {
      sousuoshenmene:function(){
      console.log(this.sousuoshenme)
        if(this.sousuoshenme.length == 11){
          this.form.mobile_produced = this.sousuoshenme
          this.form.tracking_number = ""
          this.form.iccid = ""
        }else if(this.sousuoshenme.length == 19 || this.sousuoshenme.length == 20 ){
          this.form.iccid = this.sousuoshenme
          this.form.mobile_produced = ""
          this.form.tracking_number = ""
        }else{
          this.form.tracking_number = this.sousuoshenme
          this.form.mobile_produced = ""
          this.form.iccid = ""
        }

      },
      sousuoshenmene2:function(){
        if(this.sousuoshenme2.length == 11){
          this.form.address_mobile = this.sousuoshenme2
          this.form.nickname = ""
        }else{
          this.form.nickname = this.sousuoshenme2
          this.form.address_mobile = ""
        }
      },
      sousuoshenmene3:function(){
        if(this.sousuoshenme3.length == 9){
          this.form.order_id = this.sousuoshenme3
          this.form.source_id = ''
        }else{
          this.form.source_id = this.sousuoshenme3
          this.form.order_id = ''
        }
      },
      daochulogsguanbi:function(item){


        this.daochu(item)
      },
      daochulogskai:function(){
        // this.daochulogsall.id = val.id
        this.daochulogsall.show = true
        this.$nextTick(()=>{
          this.$refs.daochulogs.chushihua()
        })
      },

      guanbi:function(){
        this.orderdetailall.show = false
      },
      orderdetailkai:function(val){
        this.orderdetailall.id = val.id
        this.orderdetailall.show = true
        this.$nextTick(()=>{
          this.$refs.orderdetailalllog.chushihua()
        })
      },
      shengchanhaomakai:function(val){
        this.shengchanhaomaall.shengchanhaomaid = val.id
        this.shengchanhaomaall.shengchanhaomashow = true
        this.$nextTick(()=>{
          this.$refs.shengchanhaomalog.chushihua()
        })
      },
      //选择省市区
      changeaddress9: function(v) {
        if(v[0] == '99999'){
          this.form.province = '全国归属地随机'
          this.form.city = ""
        }
        else if(v[0] == '99998'){
          this.form.province = '全国归属地'
          this.form.city = ""
        }
        else{

          this.form.province = CodeToText[v[0]]
          this.form.city = CodeToText[v[1]]
          if(this.form.city == undefined){
            this.form.city = ''
          }
        }

      },

      changelaiyuan:function(){
        this.form.sources = []
        this.form.source = []
        this.getlaiyuan2()
      },

      getlaiyuan2:function(){
        axios.get("/api/form/channel/sources?channel_ids="+this.form.source_type)
            .then(response=> {
                if (response.data.msg.code == 0) {
                    this.laiyuans = response.data.data
                }else{
                    this.$message.error(response.data.msg.info);
                }
            })
      },


      getlaiyuan:function(){
        axios.get(`/api/form/channel/sources`)
          .then(response => {
            if (response.data.msg.code == 0) {
              this.sources = response.data.data
            } else {
              this.$message.error(response.data.msg.info);
            }
          })
      },
      liuzhuango:function(){
        axios.post("/api/plan-market/merchant/store/config/set", {order_produce_without_pay:this.order_produce_without_pay})
        	.then(response => {
        		if (response.data.msg.code == 0) {
        			this.$message({
        				message: "操作成功",
        				type: "success"
        			});
        			this.liuzhuanlog = false
        		} else {
        			this.$message.error(response.data.msg.info);
        		}
        	});
      },
      dingdanliuzhuankai:function(){

        axios.get("/api/plan-market/merchant/store/config/info")
        	.then(response => {
        		if (response.data.msg.code == 0) {
        			this.order_produce_without_pay = response.data.data.order_produce_without_pay
        			this.liuzhuanlog = true
        		} else {
        			this.$message.error(response.data.msg.info);
        		}
        	});

      },
      wuliuxiangqing:function(item){
			  axios.post("/api/plan-market/shop/track/query",{order_id:item.id}).then(response => {
					if (response.data.msg.code == 0) {
						console.log('物流')
						console.log(response.data)
						this.wuliuxiangqingall = response.data.data
						if(this.wuliuxiangqingall && this.wuliuxiangqingall.Traces){
						this.wuliuxiangqingall.Traces = this.wuliuxiangqingall.Traces.reverse()
						}
						this.wuliuxiangqinglog = true
					}else if(response.data.msg.code == 51000){
						this.isshowwuliu = true
					} else {
						this.$message.error(response.data.msg.info);
					}
				});


      },

			changenum(id){
				this.change_num_id = id
				this.change_input = ''
				this.showchangenum = true
			},
			upchange(){
				if(this.choosetype==1){
					var plan_mobile = this.change_input
				}else{
					var plan_mobile = 0
				}
				this.showchangenum = false
				axios.post("/api/plan-market/plan-mobile/update", {
					list:[{
						id:this.change_num_id,
						type:this.choosetype,
						plan_mobile:plan_mobile,
					}]
				})
				.then(response => {
					console.log(response)
					if (response.data.msg.code == 0) {
						if(response.data.data.error.length==0){
							this.$message({
							message: "修改成功",
								type: "success"
							});
							this.getlist();
						}else{
							for(var x=0;x<response.data.data.error.length;x++){
								alert(response.data.data.error[x])
							}

						}
					} else {
						this.$message.error(response.data.msg.info);
					}
				});
			},
      giveoutone2:function(item){
        if(item.source.startsWith('ks-')){
          this.tuikuanall = {
            is_refund_money:0,
            status: 0,
            ids: item.id
          }
          this.tuikuanlog = true
        }

      },
      tuikuankaiqi:function(){
        axios.post("/api/gth/orders/handle", this.tuikuanall)
        	.then(response => {
        		if (response.data.msg.code == 0) {
        			this.$message({
        				message: "订单已放弃",
        				type: "success"
        			});
        			this.getlist();
              this.tuikuanlog = false
        		} else {
        			this.$message.error(response.data.msg.info);
        		}
        	});
      },
      chongzhisousuo:function(){
        let status = this.form.status
        this.form = {
          supplier:"",
					iccid: "",
					flag: "",
					source: "",
          statuses:[],
					source_id: "",
					id_card_num: "",
					amount: "",
					orderby: "",
					export: "",
					product_id: "",
					good_sku: "",
					deliver_fail: "",
					is_called: "",
					refund_status: "",
					order_id: "",
					mobile_produced: "",
					tracking_number: "",
					address_mobile: "",
					order_at_start: "",
					order_at_end: "",
					status_at_start: "",
					status_at_end: "",
          activated_start: "",
          activated_end: "",
					start: "",
					end: "",
					time: "",
					timems: "2",
					active_status: "",
					pages_ids: "",
          sub_source:"",
          status:status,
          is_auto_order_transfer:'',
          is_changed:"",
          sources:[],
          source_type:[],
          province:"",
          city:""
				}
        this.sousuoshenme = ""
        this.sousuoshenme2 = ""
        this.sousuoshenme3 = ""
        this.duoxuanids = ''

        this.duoxuanids2 = ''
        this.duoxuanidsx = ''
        this.duoxuanidsx2 = ''
        this.duoxuanids9 = ''
        this.duoschminput = ''
        this.duoschminput2 = ''
        this.duosjdhinput = '',
        this.duosjdhinput2 = '',

        console.log(this.form.status)
      },
      quanxuanyong:function(){
        this.bianmaquanxuanshow = true
        this.$nextTick(()=>{
          this.$refs.bianmaquanxuan.duoxuanlog2 = true
        })

      },
      bianmaquanxuans:function(data){
        console.log(data)
        this.form.pages_ids = data
      },
      readExcel1(files) {
        return new Promise((res, rej) => {
          var that = this;
          console.log(files);
          // 此处判断不严谨，思路只是根据传入的参数校验数据的完整性，可根据自己需求修改
          // 如果没有文件名
          if (files.length <= 0) {
            return;
          }
          if (!/\.(xls|xlsx)$/.test(files[0].name.toLowerCase())) {
            this.$message.error('上传格式不正确，请上传xls或者xlsx格式');
            return;
          }

          const fileReader = new FileReader();
          fileReader.onload = (ev) => {
            try {
              const data = ev.target.result;
              const workbook = read(data, {
                type: 'binary'
              });
              // 取第一张表
              const wsname = workbook.SheetNames[0];
              // 生成json表格内容
              const ws = utils.sheet_to_json(workbook.Sheets[wsname]);
              console.log(ws);
              // 后续为自己对ws数据的处理
              res(ws)
            } catch (e) {
              return false;
              rej(e)
            }
          };
          fileReader.readAsBinaryString(files[0]);
        })

      },
      //下载模板
      downfuzhi: function() {
      	const a = document.createElement('a');
      	a.setAttribute('download', '复制订单.xlsx');
      	a.setAttribute('href', this.url + 'static/moban/fuzhi.xlsx');
      	a.click();
      },
      fuzhigo:function(){
        let obj = ''
        if(this.fuzhiradio == 1){
          obj = {
            ids:this.danxuans,
            page_id:this.fuzhi_page_id
          }
        }else{
          obj = {
            ids:this.fuzhi_orders,
            page_id:this.fuzhi_page_id
          }
        }

        axios.post('/api/gth/orders/copy',obj )
        	.then(response => {
        		if (response.data.msg.code == 0) {
        			this.$message.success('已提交复制');
              this.danxuans = []
              this.fuzhi_orders = []
              this.fuzhilog = false
        		} else {
        			this.$message.error(response.data.msg.info);
        		}
        	})
      },
      uploasd(file, fileList) {
        var that = this
        let files = {
          0: file
        }
        let data = []
        let ff = this.readExcel1(files);
        ff.then((res) => {
          res.forEach(item => {
            data.push(item['订单ID'])
          })
        })
        this.fuzhi_orders = data
      },
      jiemi:function(item,index){
        console.log(item)
        this.$set(item,'id_card_name',this.decrypt(item.encrypt_id_card_name))
        this.$set(item,'id_card_num',this.decrypt(item.encrypt_id_card_num))
        this.$set(item,'address_name',this.decrypt(item.encrypt_address_name))
        this.$set(item,'address_mobile',this.decrypt(item.encrypt_address_mobile))
        this.$set(item,'address',this.decrypt(item.encrypt_address))

        let address = this.decrypt(item.encrypt_address)
        let town = this.decrypt(item.encrypt_town)

        if(address.includes(town)){
          this.$set(item,'town','')
        }else{
          this.$set(item,'town',this.decrypt(item.encrypt_town))
        }


      },
			search_pages_ids:function(){
				this.allprolist3 = this.allprolist2.filter(item=>{
					return item.fetch_code.includes(this.search_pages_id)
				})
				console.log(this.allprolist3)
			},
			test:function(){
				console.log(this.form.pages_ids)
			},
			//删除身份证
			shanchusfz: function(id) {
				axios.post('/api/plan-market/shuadan/idnum/del', {
						id: id
					})
					.then(response => {
						if (response.data.msg.code == 0) {
							this.getshenfenzhenglist()
						} else {
							this.$message.error(response.data.msg.info);
						}
					})
			},
			//添加身份证
			addsfz: function(id) {
				axios.post('/api/plan-market/shuadan/idnum/add', {
						id_card_num: this.shenfenzheng.hao
					})
					.then(response => {
						if (response.data.msg.code == 0) {
							this.shenfenzheng.hao = ''
							this.getshenfenzhenglist()
						} else {
							this.$message.error(response.data.msg.info);
						}
					})
			},
			//获取黑名单身份证列表
			getshenfenzhenglist: function() {
				axios.get('/api/gth/shuadan/idnums')
					.then(response => {
						if (response.data.msg.code == 0) {
							this.shenfenzheng.list = response.data.data
						} else {
							this.$message.error(response.data.msg.info);
						}
					})

			},
			goxiazai: function() {
				// this.$router.push({
				//   path:'/order_export2'
				// })
				let routeData = this.$router.resolve({
					path: '/order_export2'
				});
				window.open(routeData.href, '_blank');
			},
			//获取店铺
			getdianpu: function() {
				//获取号码
				axios.get('/api/gth/out-store/list')
					.then(response => {
						if (response.data.msg.code == 0) {
							this.dianpulist = response.data.data
						} else {
							this.$message.error(response.data.msg.info);
						}
					})

			},
			//单个放行
			fangxing: function(id) {

				axios.post("/api/plan-market/shua/pass", {
						id: id
					})
					.then(response => {
						if (response.data.msg.code == 0) {
							this.getlist()
							this.$message.success("已放行");
						} else {
							this.$message.error(response.data.msg.info);
						}
					})
			},
			//下载模板
			downshuadan: function() {
				const a = document.createElement('a');
				a.setAttribute('download', '刷单订单处理.xlsx');
				a.setAttribute('href', this.url + 'static/shuadan.xlsx');
				a.click();
			},
			//刷单放行
			zhengchang: function() {
				axios.post("/api/plan-market/shuadan/pass", {
						end_time: this.shuadanendtime,
						source: this.dianpusource
					})
					.then(response => {
						if (response.data.msg.code == 0) {
							this.page = 1
							this.getlist()
							this.$message.success("已设置放行");
							this.shuadanlog = false
						} else {
							this.$message.error(response.data.msg.info);
						}
					})
			},
			zhengchang2: function() {

			},
			//重置密码确认
			mimaqueren2: function() {
				if (this.mimaset != this.mimaset2) {
					this.$message.error("输入的密码不一致");
					return false
				}
				axios.post("/api/plan-market/shop/pwd", {
						mobile: this.mimashoujihao,
						sms_code: this.mimacode,
						password: this.mimaset
					})
					.then(response => {
						if (response.data.msg.code == 0) {
							this.$message.success("密码设置成功");
							this.mimachongzhilog = false
						} else {
							this.$message.error(response.data.msg.info);
						}
					})
			},
			//获取验证码
			getcode: function() {
				var that = this;
				var params = new URLSearchParams();
				params.append('mobile', this.mimashoujihao);
				axios.post('/api/auth/sms_code', params)
					.then(response => {
						if (response.data.msg.code == 0) {
							this.$message({
								message: '验证码已发送！',
								type: 'success'
							});
							that.daojishi()
						} else {
							this.$message.error(response.data.msg.info);
						}
					})
			},
			//倒计时功能
			daojishi: function() {
				var interval;
				interval = window.setInterval(() => {
					if (this.count <= 0) {
						window.clearInterval(interval)
						this.tishi = "获取验证码",
							this.jinyong = false
						this.count = 60
					} else {
						this.count -= 1;
						this.tishi = this.count + "秒重新获取"
						this.jinyong = true
					}
				}, 1000);
			},
			//获取手机号发验证码
			getshoujihao: function() {
				axios.get("/api/gth/my/shop/mobile")
					.then(response => {
						if (response.data.msg.code == 0) {
							this.mimashoujihao = response.data.data
						} else {
							this.$message.error(response.data.msg.info);
						}
					})
			},
			//密码设置
			mimasetqueren: function() {
				if (this.mimaset != this.mimaset2) {
					this.$message.error("输入的密码不一致");
					return false
				}
				axios.post("/api/plan-market/shop/pwd", {
						mobile: this.mimashoujihao,
						sms_code: this.mimacode,
						password: this.mimaset
					})
					.then(response => {
						if (response.data.msg.code == 0) {
							this.$message.success("密码设置成功");
							this.mimasetlog = false
						} else {
							this.$message.error(response.data.msg.info);
						}
					})
			},
			//确认密码下载
			mimaqueren: function() {
				this.daochu()
				// axios.post("/api/plan-market/shop/log/url",{id:this.mimaid,password:this.mima})
				//     .then(response =>{
				//         if(response.data.msg.code == 0){
				//           if(window.location.href.indexOf("91haoka_platform") > -1){
				//             console.log("线上项目，谨慎操作。")
				//             this.url = window.location.origin+"/"
				//           }else{
				//             this.url = ""
				//           }
				//           var a = document.createElement('a');

				//           a.setAttribute('href', this.url+response.data.data.local_filename);
				//           a.click();
				//         }else{
				//             this.$message.error(response.data.msg.info);
				//         }
				//     })
			},
      xiazaitouliu:function(){

      },
			xiazai: function(val) {

        let ids = ""
        let source_ids = ""
        if(this.duoxuanids2 && this.duoxuanids2[0].length == 9){
          ids = this.duoxuanids2.toString()
        }
        if(this.duoxuanids2 && this.duoxuanids2[0].length == 19){
          source_ids = this.duoxuanids2.toString()
        }

        if(val){
          //下载投流订单
              let pages_ids = ''
          		if (this.form.pages_ids) {
          			console.log(this.form.pages_ids)
          			pages_ids = this.form.pages_ids.toString()
          		}

          		var data = {}
          		data['password'] = this.mima
          		data['pages_ids'] = pages_ids
          		data['ids'] = ids
              data['id_card_nums'] = this.duoxuanidsx.toString()
              data['plan_mobile_produceds'] = this.duoschminput2.toString()
              data['address_mobiles'] = this.duosjdhinput2.toString()
          		data['type'] = 4
          		data['flag'] = 3
          		data['deliver_fail'] = this.deliver_fail
          		data['end'] = this.form.end
          		data['start'] = this.form.start
          		data['order_at_end'] = this.form.order_at_end
          		data['order_at_start'] = this.form.order_at_start
          		data['status_at_end'] = this.form.status_at_end
          		data['status_at_start'] = this.form.status_at_start
              data['nickname'] = this.form.nickname
              data['order_transfer_and_change'] = this.form.order_transfer_and_change


              data['activated_start'] = this.form.activated_start
              data['activated_end'] = this.form.activated_end

          		data['good_sku'] = this.form.good_sku
          		data['product_id'] = this.form.product_id
          		data['plan_mobile_produced'] = this.form.mobile_produced
          		data['orderby'] = this.orderby
          		data['page'] = this.page
          		data['page_size'] = this.page_size
          		data['source'] = this.form.source
              data['source_type'] = this.form.source_type
              data['province'] = this.form.province
              data['city'] = this.form.city

              data['iccid'] = this.form.iccid


          		data['source_id'] = this.form.source_id
          		data['order_id'] = this.form.order_id
          		data['id_card_num'] = this.form.id_card_num
          		data['tracking_number'] = this.form.tracking_number
          		data['amount'] = this.form.amount
          		data['address_mobile'] = this.form.address_mobile
          		data['is_called'] = this.form.is_called
          		data['refund_status'] = this.form.refund_status
          		data['color'] = this.form.flag
          		data['status'] = this.form.status
              data['statuses'] = this.form.statuses

          		data['active_status'] = this.form.active_status
              data['supplier'] = this.form.supplier
              data['source_ids'] = source_ids
              data['is_auto_order_transfer'] = this.form.is_auto_order_transfer
              data['is_changed'] = this.form.is_changed
              data['sources'] = this.form.sources
              data['sub_source'] = this.form.sub_source


          axios.post("/api/plan-market/order/promotion/export",data)
          	.then(response=> {
          		if (response.data.msg.code == 0) {
                this.$router.push('/order_exporttouliu')
          		} else {
          			this.$message.error(response.data.msg.info);
          		}
          	});
        }else{
          //判断有没有密码
          var that = this
          axios.get("/api/plan-market/shop/pwd")
          	.then(function(response) {
          		if (response.data.msg.code == 0) {
          			console.log(response)
          			if (response.data.data == "") {
          				//要设置密码
          				that.mimasetlog = true
          			} else {
          				//输入密码
          				that.mimalog = true
          			}
          		} else {
          			that.$message.error(response.data.msg.info);
          		}
          	});
        }


				//没有密码设置  有密码下载
				//地址配置,用于下载模板
				// if(window.location.href.indexOf("91haoka_platform") > -1){
				// 	console.log("线上项目，谨慎操作。")
				// 	this.url = window.location.origin+"/"
				// }else{
				// 	this.url = ""
				// }
				// var a = document.createElement('a');

				// a.setAttribute('href', this.url+url);
				// a.click();
			},
			//导入处理模板
			uploadexcle: function() {
				const a = document.createElement('a');
				a.setAttribute('download', '导入处理模板.xlsx');
				a.setAttribute('href', window.location.origin + "/" + 'static/dispose.xlsx');
				a.click();
			},
			xiazaifangqi: function() {
				const a = document.createElement('a');
				a.setAttribute('download', '导入批量放弃.xlsx');
				a.setAttribute('href', window.location.origin + "/" + 'static/fangqidingdan.xlsx');
				a.click();
			},
			//批量操作整合
			moredochange: function() {

				if (this.moredo == 0) {
					if (this.danxuans == '') {
						this.$message({
							message: "请先选择要修改的订单",
							type: "warning"
						});
						return false
					}
					this.fixprolog2 = true
				}
				if (this.moredo == 1) {
					this.giveout()
				}
				if (this.moredo == 2) {
					this.message()
				}
        if (this.moredo == 3) {
        	this.fuzhilog = true
        }
				this.moredo = ''
			},
			//短信充值相关
			//获取套餐
			rechargeget: function() {
				var that = this
				axios.get('/api/plan-market/text/packages')
					.then(response => {
						if (response.data.msg.code == 0) {
							that.rechargelist = response.data.data
						}
					})

			},
			//点击充值
			rechargego: function(id) {

				var that = this
				axios.post('/api/plan-market/text/recharge', {
						id: id
					})
					.then(response => {
						if (response.data.msg.code == 0) {
							that.$message({
								message: '充值短信成功',
								type: 'success'
							});
							that.rechargelog = false
						} else {
							that.$message.error(response.data.msg.info);
						}
					})
			},
			//获取记录
			rechargemget: function() {
				var that = this
				axios.get('/api/plan-market/text/recharge/logs')
					.then(response => {
						if (response.data.msg.code == 0) {
							that.rechargemlist = response.data.data.data
						}
					})
			},
			//修改
			rechargewhich: function(e) {
				console.log(e)
				if (e == "短信充值") {
					this.rechargeget()
				} else {
					this.rechargemget()
				}
			},
			//发送短信
			emailsendm: function() {
				var that = this
				axios.post("/api/plan-market/text/send", {
						mobiles: this.emaillist,
						sign: "落基伟业",
						template_id: "493359",
						template_params: ['6666']
					})
					.then(function(response) {
						if (response.data.msg.code == 0) {
							that.$message({
								message: '短信发送成功',
								type: 'success'
							});
						} else {
							that.$message.error(response.data.msg.info);
						}
					})
			},
			emailsend: function() {
				var that = this
				this.form.source = this.form.source.trim();
				this.form.source_id = this.form.source_id.trim();
				this.form.id_card_num = this.form.id_card_num.trim();
				this.form.good_sku = this.form.good_sku.trim();
				this.form.deliver_fail = this.form.deliver_fail.trim();
				this.form.order_id = this.form.order_id.trim();
				this.form.mobile_produced = this.form.mobile_produced.trim();
				this.form.tracking_number = this.form.tracking_number.trim();
				this.form.address_mobile = this.form.address_mobile.trim();

				var obj = {}
				obj['deliver_fail'] = this.deliver_fail
				obj['end'] = this.form.end
				obj['start'] = this.form.start
				obj['order_at_end'] = this.form.order_at_end
				obj['order_at_start'] = this.form.order_at_start
				obj['status_at_end'] = this.form.status_at_end
				obj['status_at_start'] = this.form.status_at_start
        obj['activated_start'] = this.form.activated_start
        obj['activated_end'] = this.form.activated_end
				obj['good_sku'] = encodeURIComponent(this.form.good_sku)
				obj['product_id'] = this.form.product_id
				obj['plan_mobile_produced'] = this.form.mobile_produced
				obj['source'] = this.form.source
				obj['source_id'] = this.form.source_id
				obj['order_id'] = this.form.order_id
				obj['id_card_num'] = this.form.id_card_num
				obj['tracking_number'] = this.form.tracking_number
				obj['amount'] = this.form.amount
				obj['address_mobile'] = this.form.address_mobile
				obj['is_called'] = this.form.is_called
				obj['refund_status'] = this.form.refund_status
				obj['color'] = this.form.color
				obj['flag'] = this.form.flag
				obj['status'] = this.form.status
        obj['statuses'] = this.form.statuses

				obj['active_status'] = this.form.active_status
        obj['supplier'] = this.form.supplier
		obj['is_auto_order_transfer'] = this.form.is_auto_order_transfer
    obj['is_changed'] = this.form.is_changed


				obj['sign'] = "落基伟业"
				obj['template_id'] = "493359"
				obj['template_params'] = ['6666']


				axios.post("/api/plan-market/text/orders/send", obj)
					.then(function(response) {
						if (response.data.msg.code == 0) {
							that.$message({
								message: '短信发送成功',
								type: 'success'
							});
							that.emaillog = false
						} else {
							that.$message.error(response.data.msg.info);
						}
					})
			},
			emaildown: function() {
				const a = document.createElement('a');
				a.setAttribute('download', '导入短信手机号模板.xlsx');
				a.setAttribute('href', window.location.origin + "/" + 'static/email.xlsx');
				a.click();
			},
			emailchongzhi: function() {
				this.emaillog = false
				this.rechargeget()
				this.rechargelog = true

			},
			//短信相关
			email: function() {
				this.getlist();
				this.emailget()
				this.emailtotal = this.total
				this.emaillog = true

			},
			//条件
			emailwhich: function(e) {
				if (e == "按检索条件发送") {
					this.emailwhichshow = true
					this.emailtotal = this.total
				} else {
					this.emailwhichshow = false
					this.emailtotal = 0
				}
			},
			//获取剩余条数
			emailget: function() {
				var that = this
				axios.get('/api/plan-market/shop/config/info')
					.then(response => {
						if (response.data.msg.code == 0) {
							that.emailyu = response.data.data.text_amount
						}
					})
			},
			//计数
			emailjisuan: function() {
				this.emailnum = this.emailtextarea.length
				if (this.emailnum <= 70) {
					this.emailye = 1
				} else {
					this.emailye = parseInt(this.emailnum / 70) + 1
				}

			},
			exportData(data) {
				var that = this
				if (data.header[0] == "*外部订单号") {
					let list = []
					for (var i = 0; i < data.results.length; i++) {
						var obj = {}
						obj['source_id'] = data.results[i]['*外部订单号']
						obj['memo'] = data.results[i]['自动备注信息']
						obj['track_company'] = data.results[i]['*物流公司']
						obj['track_number'] = data.results[i]['*运单号']
						obj['flag'] = data.results[i]['标旗（仅京东天猫）']
						list.push(obj)
					}
					this.daorulog = true
					this.daoruing = true
					axios.post("/api/plan-market/shuadan/import", {
							data: list
						})
						.then(function(response) {
							if (response.data.msg.code == 0) {
								if (response.data.data == 'success') {
									that.daoruok = '全部成功'
								} else {
									that.daorulist = response.data.data
								}

								that.daoruing = false
								that.getlist()();
							} else {
								that.$message.error(response.data.msg.info);
							}
						})
					return false
				}

				if (data.header[0] == "发送短信的手机号") {
					var that = this;
					var list = [];
					for (var i = 0; i < data.results.length; i++) {
						list.push(data.results[i]["发送短信的手机号"])
					}
					this.emailtotal = list.length
					this.emaillist = list
				} else if (data.header[0] == "外部订单编号") {
					var that = this;
					var list = [];
					for (var i = 0; i < data.results.length; i++) {
						list.push(data.results[i]["外部订单编号"])
					}
					axios.post("/api/plan-market/order/auto/deliver", {
							source_ids: list
						})
						.then(response => {
							if (response.data.msg.code != 0) {
								that.$message.error(response.data.msg.info);
							} else {
								that.$message({
									message: '已处理导入数据',
									type: 'success'
								});
								this.loading = true;
								this.getlist();
							}
						});
				} else {
					var that = this;
					var list = [];
					//导入的是激活状态的情况
					for (var i = 0; i < data.results.length; i++) {
						var obj = {};
						obj["order_id"] = data.results[i]["订单ID"];
						obj["source_id"] = data.results[i]["外部订单编号"];

						if (obj["order_id"] != undefined) {
							obj["order_id"] = obj["order_id"].toString();
							obj["order_id"] = obj["order_id"].replace(/(^\s*)|(\s*$)/g, "");
						}
						if (obj["source_id"] != undefined) {
							obj["source_id"] = obj["source_id"].toString();
							obj["source_id"] = obj["source_id"].replace(/(^\s*)|(\s*$)/g, "");
						}
						list.push(obj);
					}
					this.daorulog = true;
					this.daoruing = true;
					axios
						.post("/api/gth/orders/abandon", {
							data: list
						})
						.then(function(response) {
							console.log(response);
							const status = response.status;
							const data = response.data;
							const msg = data.msg;
							const code = msg.code;
							if (status === 200 && code === 0) {
								that.$message({
									message: "订单已放弃，真让人感觉遗憾...",
									type: "success"
								});
								that.getlist();
							} else {
								if (status !== 200) {
									that.percentage = 100;
									that.progressVisible = false;
									that.$message.error("网络异常");
								} else {
									that.percentage = 100;
									that.progressVisible = false;
									that.$message.error(msg.info);
								}
							}
						})
						.catch(function(err) {
							that.$message.error("异常:" + err.message);
						});
				}

			},
			//复制阿里号
			ali: function(id) {
				var that = this;
				axios
					.get("/api/plan-market/order/nickname?order_id=" + id)
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
						} else {
							if (response.data.data.nickname != "") {
								that.copy(response.data.data.nickname);
							} else {}
						}
					});
			},
			alih: function(id) {
				var that = this;
				axios
					.get("/api/plan-market/order/nickname?order_id=" + id)
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
						} else {
							that.tmall = response.data.data.nickname;
						}
					});
			},
			//批量留言
			message: function() {
				if (this.danxuans == '') {
					this.$message({
						message: "请先选择要留言的订单",
						type: "warning"
					});
					return false
				}
				var arr = "";
				for (var i in this.danxuans) {
					console.log(this.danxuans[i]);
					arr = arr + this.danxuans[i] + ",";
				}
				arr = arr.substring(0, arr.lastIndexOf(","));
				var that = this;
				this.$prompt("请输入留言内容", "提示", {
					confirmButtonText: "确定留言",
					cancelButtonText: "取消"
				}).then(({
					value
				}) => {
					axios
						.post("/api/plan-market/order/send-message", {
							msg: value,
							ids: arr
						})
						.then(response => {
							if (response.data.msg.code == 0) {
								if (response.data.data.error == "") {
									that.$message({
										message: "修改商品成功",
										type: "success"
									});
									this.getlist();
								} else {
									that.meslist = response.data.data;
									that.meslog = true;
									this.getlist();
								}
							} else {
								this.$message.error(response.data.msg.info);
							}
						});
				});
			},
			//跳转到上传页面
			goupload: function() {
				window.open(
					window.location.origin + window.location.pathname + "/#/upload?share_id=" + this.shop_id
				);
			},

			//选择时间
			timemschange: function() {
				console.log(this.form.time)
				if (this.form.timems == null) {
					this.form.start = ""
					this.form.end = ""
					this.form.status_at_start = ""
					this.form.status_at_end = ""
					this.form.activated_start = ""
					this.form.activated_end = ""
				} else {
					if (this.form.timems == 0) {
						this.form.status_at_start = this.form.time[0];
						this.form.status_at_end = this.form.time[1];
						this.form.start = "";
						this.form.end = "";
						this.form.order_at_start = "";
						this.form.order_at_end = "";

            this.form.activated_start = "";
            this.form.activated_end = "";
					}
					if (this.form.timems == 1) {
						this.form.order_at_start = this.form.time[0];
						this.form.order_at_end = this.form.time[1];
						this.form.start = "";
						this.form.end = "";
						this.form.status_at_start = "";
						this.form.status_at_end = "";

            this.form.activated_start = "";
            this.form.activated_end = "";
					}
					if (this.form.timems == 2) {
						this.form.start = this.form.time[0];
						this.form.end = this.form.time[1];
						this.form.status_at_start = "";
						this.form.status_at_end = "";
						this.form.order_at_start = "";
						this.form.order_at_end = "";

            this.form.activated_start = "";
            this.form.activated_end = "";
					}
          if (this.form.timems == 3) {
          	this.form.activated_start = this.form.time[0];
          	this.form.activated_end = this.form.time[1];

          	this.form.status_at_start = "";
          	this.form.status_at_end = "";
          	this.form.order_at_start = "";
          	this.form.order_at_end = "";
            this.form.start = "";
            this.form.end = "";
          }
				}
			},
			//选择时间
			timechange: function() {
				console.log(this.form.time);
				if (this.form.time != null) {
					if (this.form.timems == 0) {
						this.form.status_at_start = this.form.time[0];
						this.form.status_at_end = this.form.time[1];
						this.form.start = "";
						this.form.end = "";
						this.form.order_at_start = "";
						this.form.order_at_end = "";
            this.form.activated_start = ""
            this.form.activated_end = ""
					}
					if (this.form.timems == 1) {
						this.form.order_at_start = this.form.time[0];
						this.form.order_at_end = this.form.time[1];
						this.form.start = "";
						this.form.end = "";
						this.form.status_at_start = "";
						this.form.status_at_end = "";
            this.form.activated_start = ""
            this.form.activated_end = ""
					}
					if (this.form.timems == 2) {
						this.form.start = this.form.time[0];
						this.form.end = this.form.time[1];
						this.form.status_at_start = "";
						this.form.status_at_end = "";
						this.form.order_at_start = "";
						this.form.order_at_end = "";
            this.form.activated_start = ""
            this.form.activated_end = ""
					}
          if (this.form.timems == 3) {
          	this.form.activated_start = this.form.time[0];
          	this.form.activated_end = this.form.time[1];
          	this.form.status_at_start = "";
          	this.form.status_at_end = "";
          	this.form.order_at_start = "";
          	this.form.order_at_end = "";
            this.form.start = "";
            this.form.end = "";
          }

				} else {
					this.form.start = "";
					this.form.end = "";
					this.form.status_at_start = "";
					this.form.status_at_end = "";
					this.form.order_at_start = "";
					this.form.order_at_end = "";
          this.form.activated_start = ""
          this.form.activated_end = ""
				}
			},
			//选中的id记录
			choosefixid: function(id, source_id) {
				//查看是否是拆单
				this.amountchai = source_id

				this.fixid = id;

				var that = this;
				axios.get("/api/plan-market/order/info?order_id=" + id).then(response => {
					if (response.data.msg.code != 0) {
						that.$message.error(response.data.msg.info);
					} else {
						that.fixchooselist = response.data.data;

						that.fixchooselist.city = [];
						if (that.fixchooselist.status == "120") {
							that.fixchooselist.status = "初步审核";
						}
					}
				});
			},
			//修改
			fix: function(e) {
				console.log(e);
				if (e == "fixpro") {
					this.fixprolog = true;
				}
				if (e == "whitepro") {
					this.whiteprolog = true;
				}
				if (e == "fixorder") {
					this.ischange = 0
					this.fixorderlog = true;
					var city = [];
					try {
						if (this.fixchooselist.address_province != "") {
							city.push(TextToCode[this.fixchooselist.address_province].code);
						}
						if (this.fixchooselist.address_city != "") {
							city.push(
								TextToCode[this.fixchooselist.address_province][
									this.fixchooselist.address_city
								].code
							);
						}
						if (this.fixchooselist.address_district != "") {
							city.push(
								TextToCode[this.fixchooselist.address_province][
									this.fixchooselist.address_city
								][this.fixchooselist.address_district].code
							);
						}
					} catch (e) {
						console.log("没有在组件库找到此地址");
					}

					this.fixchooselist["city"] = city;
          console.log(this.fixchooselist.address)
          this.fixchooselist.address = this.fixchooselist.address.replace(new RegExp(this.fixchooselist.town, 'g'), '');


					console.log(this.fixchooselist.city);
				}

				if (e == "backpro") {
					this.probacklog = true;
					//标记为已退货处理
					// 点确认执行probackok
				}
				if (e == "fast") {
					this.fastlog = true;
					//标记为加急
					// 点确认执行fastok
				}

				if (e == "tijiaochushen") {
					axios.post("/api/plan-market/user/initial-approval", {
						id: this.fixid
					}).then(response => {
						if (response.data.msg.code != 0) {
							this.$message.error(response.data.msg.info);
						} else {
							this.$message({
								type: "success",
								message: "已提交至初审!"
							});
							that.getlist();
						}
					});
				}
        if (e == "zhuanshu") {
        	axios.post("/api/plan-market/add/maintain/order", {
        		order_id: this.fixid
        	}).then(response => {
        		if (response.data.msg.code != 0) {
        			this.$message.error(response.data.msg.info);
        		} else {
        			this.$message({
        				type: "success",
        				message: "已加入专属维系!"
        			});
        			that.getlist();
        		}
        	});
        }
				if (e == "backorder") {
					this.backorderlog = true;
					//标记为
					// 点确认执行backorderok
				}
				if (e == "refund") {
					this.$confirm(
						'确定给ID为"' + this.fixchooselist.id + '"的订单执行退款操作吗?',
						"提示", {
							confirmButtonText: "确定",
							cancelButtonText: "取消",
							type: "warning"
						}
					).then(() => {
						var that = this;
						this.loading = true;
						var params = new FormData();
						params.append("id", this.fixchooselist.id);
						axios.post("/api/ROS/plan/order/refund", params).then(response => {
							if (response.data.code != "SUCCESS") {
								this.$message.error(response.data.msg.info);
							} else {
								that.$message({
									type: "success",
									message: "已处理退款!"
								});
								that.getlist();
							}
							that.loading = false;
						});
					});
				}
				if (e == "fixstatus") {
					this.fixreasons = "";

					this.fixstatuslog = true;
				}
				if (e == "tousugongdan") {

					this.isshowwindow = true;
					this.tousuid = this.fixid
				}

        if (e == "shangbao") {
          this.$confirm(
          	'确定要手动上报吗?',
          	"提示", {
          		confirmButtonText: "确定",
          		cancelButtonText: "取消",
          		type: "warning"
          	}
          ).then(() => {

          	axios.get("/api/plan-market/order/promotion?order_id="+this.fixid).then(response => {
          		if (response.data.msg.code != 0) {
          			this.$message.error(response.data.msg.info);
          		} else {
          			this.$message({
          				type: "success",
          				message: "已操作!"
          			});
          			this.getlist();
          		}

          	});
          });

        }

        if (e == "jingdongtuikuan") {

          this.jingdongall.id = this.fixid
          this.jingdonglog2 = true

        }
        if (e == "jingdongtuikuan2") {

          this.jingdongall.id = this.fixid
          this.jingdonglog = true

        }
			},
      jingdonggo:function(){
        axios.post("/api/plan-market/order/jd/refund",this.jingdongall)
        .then(response => {
        		if (response.data.msg.code != 0) {
        			this.$message.error(response.data.msg.info);
        		} else {
              this.$message({
              	message: "操作成功",
              	type: "success"
              });
              this.getlist();
              this.jingdonglog = false
        		}
        });
      },

			//修改产品查询
			searchproname: function() {
				if (this.fixproname == "") {
					this.fixprocodeshow = false;
				} else {
					this.fixprocodeshow = true;
				}
				this.fixproid = this.fixproname;
				// this.fixpronames = "查询中...";
				// axios
				//   .get(
				//     "/api/plan-market/order-page/my?title=" +
				//       encodeURIComponent(this.fixproname)
				//   )
				//   .then(response => {
				//     if (response.data.msg.code != 0) {
				//       this.$message.error(response.data.msg.info);
				//     } else {
				//       if (response.data.data == null) {
				//         this.fixpronames = "销售中心无该产品信息";
				//         this.fixproid = "";
				//       } else {
				//         this.fixproid = response.data.data.id;
				//         this.fixpronames = response.data.data.title;
				//       }
				//     }
				//   });
			},
			searchprocode: function() {
				if (this.fixprocode == "") {
					this.fixpronameshow = false;
				} else {
					this.fixpronameshow = true;
				}
				this.fixpronames = "查询中...";
				axios
					.get(
						"/api/plan-market/order-page/my?fetch_code=" +
						encodeURIComponent(this.fixprocode)
					)
					.then(response => {
						if (response.data.msg.code != 0) {
							this.$message.error(response.data.msg.info);
						} else {
							if (response.data.data == null) {
								this.fixpronames = "没有查询到商品";
								this.fixproid = "";
							} else {
								this.fixproid = response.data.data.id;
								this.fixpronames = response.data.data.title;
							}
						}
					});
			},
			//修改商品ok
			fixprook: function() {
				this.fixproing = true;
				var that = this;
				axios
					.post("/api/plan-market/order/product/update", {
						page_id: this.fixproid,
						ids: this.fixid
					})
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
							that.fixproing = false;
						} else {
							if (response.data.data.error == "") {
								that.fixproing = false;
								that.$message({
									message: "修改商品成功",
									type: "success"
								});
								that.getlist();
								that.fixprolog = false;
							} else {
								for (let i in response.data.data.error) {
									that.$message.error(response.data.data.error[i]);
								}

								that.fixproing = false;
								that.getlist();
								that.fixprolog = false;
							}
						}
					});
			},
			//修改商品ok2
			fixprook2: function() {
				var arr = "";
				for (var i in this.danxuans) {
					console.log(this.danxuans[i]);
					arr = arr + this.danxuans[i] + ",";
				}
				arr = arr.substring(0, arr.lastIndexOf(","));
				if (this.fixproid == "" || this.danxuans == "") {
					this.$message.error("请选择要修改的订单和商品");
					return false;
				}
				this.fixproing = true;
				var that = this;
				axios
					.post("/api/plan-market/order/product/update", {
						page_id: this.fixproid,
						ids: arr
					})
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
							that.fixproing = false;
						} else {
							if (response.data.data.error == "") {
								that.fixproing = false;
								that.$message({
									message: "修改商品成功",
									type: "success"
								});
								that.getlist();
								that.fixprolog2 = false;
							} else {
								that.shoplist = response.data.data;
								that.shoplog = true;

								that.fixproing = false;
								that.getlist();
								that.fixprolog2 = false;
							}
						}
					});
			},
			//取消订单
			backorderok: function() {
				var that = this;
				var params = new URLSearchParams();
				params.append("id", this.fixid);
				axios.post("/api/plan-market/order/cancel", params).then(response => {
					if (response.data.msg.code != 0) {
						this.$message.error(response.data.msg.info);
					} else {
						this.backorderlog = false;
						this.$message({
							message: "修改状态成功",
							type: "success"
						});
						that.getlist();
					}
				});
			},
			//退货确认
			probackok: function() {
				var that = this;
				var params = new URLSearchParams();
				params.append("id", this.fixid);
				params.append("remark", this.backproreason);
				axios
					.post("/api/plan-market/order/return_product", params)
					.then(response => {
						if (response.data.msg.code != 0) {
							this.$message.error(response.data.msg.info);
						} else {
							this.probacklog = false;
							this.$message({
								message: "修改状态成功",
								type: "success"
							});
							that.getlist();
						}
					});
			},
			//加急处理
			fastok: function() {
				var that = this;
				var params = new URLSearchParams();
				params.append("id", this.fixid);
				axios.post("/api/plan-market/order/accelerate", params).then(response => {
					if (response.data.msg.code != 0) {
						this.$message.error(response.data.msg.info);
					} else {
						this.fastlog = false;
						this.$message({
							message: "修改状态成功",
							type: "success"
						});
					}
				});
			},
			//修改信息
			fixorderok: function() {
				var that = this;
				axios
					.get("/api/plan-market/order/info?order_id=" + this.fixid)
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
							that.ischange = 1
						} else {
							var params = new URLSearchParams();
							params.append("id", that.fixid);
							if (that.fixchooselist.address_name != response.data.data.address_name) {
								params.append("address_name", that.fixchooselist.address_name);
							}
							if (that.fixchooselist.id_card_name != response.data.data.id_card_name) {
								params.append("id_card_name", that.fixchooselist.id_card_name);
							}
							if (that.fixchooselist.id_card_num != response.data.data.id_card_num) {
								params.append("id_card_num", that.fixchooselist.id_card_num);
							}
							if (that.fixchooselist.address_province != response.data.data.address_province) {
								params.append("address_province", that.fixchooselist.address_province);
							}
							if (that.fixchooselist.address_city != response.data.data.address_city) {
								params.append("address_city", that.fixchooselist.address_city);
							}
							if (that.fixchooselist.address_district != response.data.data.address_district) {
								params.append("address_district", that.fixchooselist.address_district);
							}

							if (that.fixchooselist.address_province_code != response.data.data
								.address_province_code) {
								params.append("address_province_code", that.fixchooselist.address_province_code);
							}
							if (that.fixchooselist.address_city_code != response.data.data.address_city_code) {
								params.append("address_city_code", that.fixchooselist.address_city_code);
							}
							if (that.fixchooselist.address_district_code != response.data.data
								.address_district_code) {
								params.append("address_district_code", that.fixchooselist.address_district_code);
							}

              if (that.fixchooselist.town != response.data.data.town) {
              	params.append("town", that.fixchooselist.town);
              }
              let address = that.fixchooselist.town + that.fixchooselist.address
							if (address != response.data.data.address) {
								params.append("address", address);
							}

							if (that.fixchooselist.address_mobile != response.data.data.address_mobile) {
								params.append("address_mobile", that.fixchooselist.address_mobile);
							}

							axios.post("/api/plan-market/order/info/update", params)
								.then(response => {
									if (response.data.msg.code != 0) {
										that.$message.error(response.data.msg.info);
										that.ischange = 1
									} else {
										that.fixorderlog = false;
										that.$message({
											message: "修改状态成功",
											type: "success"
										});
										that.getlist();
										that.ischange = 2
									}
								});
						}
					});
			},
			//修改信息并提交初审
			fixorderokandCS(){
				this.fixorderok()
				var time = setInterval(()=>{
					if(this.ischange==1){
						clearInterval(time)
					}else if(this.ischange==2){
						clearInterval(time)
						axios.post("/api/plan-market/user/initial-approval", {
							id: this.fixid
						}).then(response => {
							if (response.data.msg.code != 0) {
								this.$message.error(response.data.msg.info);
							} else {
								this.$message({
									type: "success",
									message: "已提交至初审!"
								});
								that.getlist();
							}
						});
					}
				},100)
			},
			// //修改生产信息
			// whiteprook:function(){
			// 	var that = this
			// 	var params = new URLSearchParams();
			// 	params.append('id', this.fixid);
			// 	params.append('plan_mobile_produced', this.fixchooselist.plan_mobile_produced);
			// 	params.append('tracking_number', this.fixchooselist.tracking_number);
			// 	axios.post('/api/plan-market/order/info/update',params)
			// 		.then(response => {
			// 			if(response.data.msg.code != 0){
			// 					this.$message.error(response.data.msg.info);
			// 			}else{
			// 					this.probacklog = false
			// 					this.$message({
			// 						message: '录入信息成功',
			// 						type: 'success'
			// 					});
			// 					this.whiteprolog = false
			// 					that.getlist()
			// 			}
			// 		})
			// },
			//查看详情
			seedetail: function(id) {
        let routeUrl = this.$router.resolve({

             path: "/order_question/orderDetail",

             query: {id:id}

           });

           window.open(routeUrl.href, '_blank');

			},
			//处理功能
			chuli: function(id) {
				var that = this;
				this.$confirm("确定已处理?", "提示", {
					confirmButtonText: "确定",
					cancelButtonText: "取消",
					type: "warning"
				}).then(() => {
					axios
						.post("/api/plan-market/order/auto/deliver", {
							order_id: id
						})
						.then(response => {
							if (response.data.msg.code != 0) {
								that.$message.error(response.data.msg.info);
							} else {
								this.loading = true;
								this.getlist();
							}
						});
				});
			},
			//查看运单号
			seetracking: function(com, num) {
				this.trackingcom = com;
				this.trackingnum = num;
				this.trackinglog = true;
			},
			//获取所有产品
			getprolist: function() {
				var that = this;
				axios
					.get("/api/gth/order-pages?_page_size=10000")
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
						} else {
							that.form.prolist = response.data.data.data;
						}
					});
			},
			//确认已联系
			contactgo: function() {
				this.contacting = true;
				var that = this;
				axios
					.post("/api/plan-market/order/call", {
						id: this.contactid
					})
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
						} else {
							that.loading = true;
							that.$message({
								message: "修改已联系！",
								type: "success"
							});
							that.getlist();
							that.contactlog = false;
							that.contacting = false;
						}
					});
			},
			//确认已联系并标旗
			contactgo2: function() {
				this.contacting = true;
				var that = this;
				axios
					.post("/api/plan-market/order/call", {
						id: this.contactid
					})
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
						} else {
							that.$message({
								message: "修改为已联系！",
								type: "success"
							});
							that.choosecolorid(that.contactid);
							that.contactlog = false;
							that.contacting = false;
						}
					});
			},
			//获取旗子
			getflag: function() {
				axios.get("/api/gth/shop/flag/info").then(response => {
					for (var i in response.data.data) {
						if (response.data.data[i].type == 0) {
							response.data.data[i].color = "#e4dfd7";
						}
						if (response.data.data[i].type == 1) {
							response.data.data[i].color = "#ee3f4d";
						}
						if (response.data.data[i].type == 2) {
							response.data.data[i].color = "#ebb10d";
						}
						if (response.data.data[i].type == 3) {
							response.data.data[i].color = "#229453";
						}
						if (response.data.data[i].type == 4) {
							response.data.data[i].color = "#2775b6";
						}
						if (response.data.data[i].type == 5) {
							response.data.data[i].color = "#8076a3";
						}
					}

					this.flaglist = response.data.data;
				});
			},
			//修改已联系
			contact: function(id) {
				this.contactid = id;
				this.contactlog = true;
			},
			//查看操作记录
			seememo: function(memo) {
				this.memo = memo;
				this.seememolog = true;
			},
			//排序
			shunxu: function() {
				this.loading = true;

				if (this.orderby == 0) {
					this.orderby = 1;
					this.desc = true;
				} else {
					this.orderby = 0;
					this.desc = false;
				}
				this.getlist();
			},
			//导出
			daochu: function(item) {

        let ids = ""
        let source_ids = ""
        if(this.duoxuanids2 && this.duoxuanids2[0].length == 9){
          ids = this.duoxuanids2
        }else{
          source_ids = this.duoxuanids2
        }

				// this.form.source = this.form.source.trim();
				this.form.source_id = this.form.source_id.trim();
				this.form.id_card_num = this.form.id_card_num.trim();
				this.form.good_sku = this.form.good_sku.trim();
				this.form.deliver_fail = this.form.deliver_fail.trim();
				this.form.order_id = this.form.order_id.trim();
				this.form.mobile_produced = this.form.mobile_produced.trim();
				this.form.tracking_number = this.form.tracking_number.trim();
				this.form.address_mobile = this.form.address_mobile.trim();

				let pages_ids = ''
				if (this.form.pages_ids) {
					console.log(this.form.pages_ids)
					pages_ids = this.form.pages_ids.toString()
				}

				var data = {}
				data['password'] = this.mima
				data['pages_ids'] = pages_ids
				data['ids'] = ids
        // data['source_type'] = this.duoxuanids9.toString()
        data['id_card_nums'] = this.duoxuanidsx.toString()
        data['plan_mobile_produceds'] = this.duoschminput2.toString()
		 data['address_mobiles'] = this.duosjdhinput2.toString()
				data['type'] = 4
				data['flag'] = 3
				data['deliver_fail'] = this.deliver_fail
				data['end'] = this.form.end
				data['start'] = this.form.start
				data['order_at_end'] = this.form.order_at_end
				data['order_at_start'] = this.form.order_at_start
				data['status_at_end'] = this.form.status_at_end
				data['status_at_start'] = this.form.status_at_start

        data['activated_start'] = this.form.activated_start
        data['activated_end'] = this.form.activated_end

				data['good_sku'] = this.form.good_sku
				data['product_id'] = this.form.product_id
				data['plan_mobile_produced'] = this.form.mobile_produced
				data['orderby'] = this.orderby
				data['page'] = this.page
				data['page_size'] = this.page_size
				data['source'] = this.form.source
        data['source_type'] = this.form.source_type
        data['province'] = this.form.province
        data['city'] = this.form.city
        data['iccid'] = this.form.iccid
        data['order_transfer_and_change'] = this.form.order_transfer_and_change


				data['source_id'] = this.form.source_id
				data['order_id'] = this.form.order_id
				data['id_card_num'] = this.form.id_card_num
				data['tracking_number'] = this.form.tracking_number
				data['amount'] = this.form.amount
				data['address_mobile'] = this.form.address_mobile
				data['is_called'] = this.form.is_called
				data['refund_status'] = this.form.refund_status
				data['color'] = this.form.flag
				data['status'] = this.form.status
        data['statuses'] = this.form.statuses

				data['active_status'] = this.form.active_status
        data['supplier'] = this.form.supplier
        data['source_ids'] = source_ids
		data['is_auto_order_transfer'] = this.form.is_auto_order_transfer
    data['is_changed'] = this.form.is_changed


    data['sources'] = this.form.sources
    data['sub_source'] = this.form.sub_source
    data['model_id'] = item.act
    data['item_ids'] = item.arr
    data['type'] = 1





				// var url =
				//   "/api/plan-market/order/export?type=4&flag=3&deliver_fail=" +
				//   this.deliver_fail +
				//   "&end=" +
				//   this.form.end +
				//   "&start=" +
				//   this.form.start +
				//   "&order_at_end=" +
				//   this.form.order_at_end +
				//   "&order_at_start=" +
				//   this.form.order_at_start +
				//   "&status_at_end=" +
				//   this.form.status_at_end +
				//   "&status_at_start=" +
				//   this.form.status_at_start +
				//   "&good_sku=" +
				//   encodeURIComponent(this.form.good_sku) +
				//   "&product_id=" +
				//   this.form.product_id +
				//   "&plan_mobile_produced=" +
				//   this.form.mobile_produced +
				//   "&orderby=" +
				//   this.orderby +
				//   "&page=" +
				//   this.page +
				//   "&page_size=" +
				//   this.page_size +
				//   "&source=" +
				//   this.form.source +
				//   "&source_id=" +
				//   this.form.source_id +
				//   "&order_id=" +
				//   this.form.order_id +
				//   "&id_card_num=" +
				//   this.form.id_card_num +
				//   "&tracking_number=" +
				//   this.form.tracking_number +
				//   "&amount=" +
				//   this.form.amount +
				//   "&address_mobile=" +
				//   this.form.address_mobile +
				//   "&is_called=" +
				//   this.form.is_called +
				//   "&refund_status=" +
				//   this.form.refund_status +
				//   "&color=" +
				//   this.form.flag +
				//   "&status=" +
				//   this.form.status +
				//   "&active_status=" +
				//   this.form.active_status;

				this.daochuing = true;
				this.daochuingz = "导出中...";
				axios.post('/api/plan-market/order/export/new', data).then(response => {
					if (response.data.msg.code == 0) {

						localStorage.setItem("daochumima", this.mima)

						// var a = document.createElement("a");
						// a.setAttribute("href", response.data.data);
						// a.click();
						this.daochuing = false;
						this.daochuingz = "导出订单";
						// this.daochulog = false;
						// this.mimalog = false
						//2021.3.1全部导出修改
						// this.$router.push({
						//   path:'/order_export2'
						// })
						let routeData = this.$router.resolve({
							path: '/order_export2'
						});
						window.open(routeData.href, '_blank');
					} else {
						this.$message.error(response.data.msg.info);
						this.daochuing = false;
						this.daochuingz = "导出订单";
					}
				});
			},
			copyurl: function() {
				if (!this.urlStatus) {
					return
				}
				let url = window.location.origin + '/'
				if (this.urlStatus === 'photos') {
					url = url + 'webapp/temporary/index.html'
				}
				if (this.urlStatus === 'idcodenum') {
					url = url + 'webapp/temporary/idCardNum.html'
				}

				var that = this;
				axios.get("/api/plan-market/getdunurl/?url=" + url + "?id=" + this.scsource_id, )
					.then(response => {
						if (response.data.msg.code == 0) {
							if (response.data.data != '') {

                setTimeout(()=>{
                  that.$copyText(response.data.data).then(res => {
                  	that.$message.success("复制成功");
                  })
                },100)

                // if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
                //   var textArea = document.createElement("textarea");
                //   textArea.value = response.data.data;
                //   textArea.style.position = "fixed";
                //   textArea.style.top = "0";
                //   textArea.style.left = "0";
                //   textArea.style.width = "2em";
                //   textArea.style.height = "2em";
                //   textArea.style.padding = "0";
                //   textArea.style.border = "none";
                //   textArea.style.outline = "none";
                //   textArea.style.boxShadow = "none";
                //   textArea.style.background = "transparent";
                //   document.body.appendChild(textArea);
                //   textArea.select();
                //   var successful = document.execCommand('copy');
                //   that.$message({
                //   	message: successful,
                //   	type: 'success'
                //   });
                //   document.body.removeChild(textArea);

                // }else{
                //     var input = document.createElement('input');
                //     input.setAttribute('readonly', 'readonly');
                //     input.setAttribute('value',response.data.data);
                //     document.body.appendChild(input);
                //     input.setSelectionRange(0, 9999);
                //     input.select();
                //     if (document.execCommand('copy')) {
                //         document.execCommand('copy');
                //         that.$message({
                //         	message: '复制成功',
                //         	type: 'success'
                //         });
                //     }
                //     document.body.removeChild(input);
                // }



								// that.$copyText(response.data.data).then(res => {
								// 	that.$message.success("复制成功");
								// });
							} else {
								this.$message.error('短链生成失败');
							}

						}
					});

			},


			//查看证件
			seephoto: function(item) {

				this.jiemi(item)

				//没加载之前
				this.scsource_id = item.source_id
				this.waitpic = true;
				this.choose.id = item.id;
				this.choose.id_card_name = item.id_card_name;
				this.choose.id_card_num = item.id_card_num;
				this.seephotolog2 = true;
				this.seephotoloading = true;
				this.choose.face = "";
				this.choose.back = "";
				this.choose.hand = "";
				this.nowpicstatus = item.status
				axios.get("/api/plan-market/order/chargeStatus?id=" + this.scsource_id)
					.then(res => {
						if (res.data.msg.code != 0) {
							this.$message.error(res.data.msg.info);
						} else {
							this.urlStatus = res.data.data.type
							this.can_upload = res.data.data.show
						}
					});
				var that = this;
				axios
					.get(
						"/api/plan-market/order/photos/url?id_card_num=" +
						item.id_card_num +
						"&id=" +
						item.id
					)
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
						} else {
							var random = Math.random();
							if (response.data.data.face_url != "") {
								that.choose.face = response.data.data.face_url + "?v=" + random;
							} else {
								that.choose.face = "";
							}
							if (response.data.data.back_url != "") {
								that.choose.back = response.data.data.back_url + "?v=" + random;
							} else {
								that.choose.back = "";
							}
							if (response.data.data.hand_url != "") {
								that.choose.hand = response.data.data.hand_url + "?v=" + random;
							} else {
								that.choose.hand = "";
							}
							that.seephotoloading = false;
							console.log(that.choose.face)
							console.log(that.choose.back)
							console.log(that.choose.hand)
						}
					});
			},
			//点击重提获取详细信息
			rep: function(id) {
				var that = this;
				axios.get("/api/plan-market/order/info?order_id=" + id).then(response => {
					if (response.data.msg.code != 0) {
						that.$message.error(response.data.msg.info);
					} else {
						response.data.data.face = "";
						response.data.data.back = "";
						response.data.data.hand = "";
						that.choose = response.data.data;
						axios
							.get(
								"/api/plan-market/order/photos/url?id_card_num=" +
								that.choose.id_card_num +
								"&id=" +
								that.choose.id
							)
							.then(response => {
								if (response.data.msg.code != 0) {
									that.$message.error(response.data.msg.info);
								} else {
									var random = Math.random();
									if (response.data.data.face_url != "") {
										that.choose.face =
											response.data.data.face_url + "?v=" + random;
									} else {
										that.choose.face = "";
									}
									if (response.data.data.back_url != "") {
										that.choose.back =
											response.data.data.back_url + "?v=" + random;
									} else {
										that.choose.back = "";
									}
									if (response.data.data.hand_url != "") {
										that.choose.hand =
											response.data.data.hand_url + "?v=" + random;
									} else {
										that.choose.hand = "";
									}
								}
							});

						try {
							var city = [];
							if (this.choose.address_province != "") {
								city.push(TextToCode[this.choose.address_province].code);
							}
							if (this.choose.address_city != "") {
								city.push(
									TextToCode[this.choose.address_province][
										this.choose.address_city
									].code
								);
							}
							if (this.choose.address_district != "") {
								city.push(
									TextToCode[this.choose.address_province][
										this.choose.address_city
									][this.choose.address_district].code
								);
							}
							this.choose.city = city;
							console.log(this.choose.city)
						} catch (err) {
							console.log("地址对应不起来");
						}
						that.seephotolog = true;
					}
				});
			},
			//选择省市区重提用
			changeaddress2: function(v) {
				(this.choose.address_province = CodeToText[v[0]]),
				(this.choose.address_city = CodeToText[v[1]]),
				(this.choose.address_district = CodeToText[v[2]]);
				console.log(this.choose);
				console.log(
					"选中" +
					this.choose.address_province +
					this.choose.address_city +
					this.choose.address_district
				);
			},
			//选择省市区修改信息用
			changeaddress: function(v) {
				console.log(v)

				this.fixchooselist.address_province_code = v[0],
					this.fixchooselist.address_city_code = v[1],
					this.fixchooselist.address_district_code = v[2],

					this.fixchooselist.address_province = CodeToText[v[0]],
					this.fixchooselist.address_city = CodeToText[v[1]],
					this.fixchooselist.address_district = CodeToText[v[2]];
				console.log(
					"选中的省市区" +
					this.fixchooselist.address_province +
					this.fixchooselist.address_city +
					this.fixchooselist.address_district
				);
			},
			//修改信息
			repgo: function() {
				this.repgoing = true;
				var that = this;
				var params = new URLSearchParams();

				params.append("id", this.choose.id);

				params.append("id_card_name", this.choose.id_card_name);
				params.append("id_card_num", this.choose.id_card_num);

				params.append("address_province", this.choose.address_province);
				params.append("address_city", this.choose.address_city);
				params.append("address_district", this.choose.address_district);
				params.append("address", this.choose.address);

				params.append("address_mobile", this.choose.address_mobile);
				params.append("address_name", this.choose.address_name);

				axios
					.post("/api/plan-market/order/info/update", params)
					.then(response => {
						if (response.data.msg.code != 0) {
							this.$message.error(response.data.msg.info);
						} else {
							//调取更改状态
							axios
								.post("/api/plan-market/order/status/update", {
									id: this.choose.id,
									status: 120
								})
								.then(response => {
									if (response.data.msg.code != 0) {
										that.$message.error(response.data.msg.info);
									} else {
										that.repgoing = false;
										that.seephotolog = false;
										that.loading = true;
										that.$message({
											message: "修改信息成功",
											type: "success"
										});
										that.getlist();
									}
								});
						}
					});
			},
			//点击重提获取详细信息
			reppic: function(id) {
				console.log(id);
				var that = this;
				axios.get("/api/plan-market/order/info?order_id=" + id).then(response => {
					if (response.data.msg.code != 0) {
						that.$message.error(response.data.msg.info);
					} else {
						var random = Math.random();
						if (response.data.data.face_url != "") {
							response.data.data.face_url =
								response.data.data.face_url + "?v=" + random;
						} else {
							response.data.data.face_url = "";
						}
						if (response.data.data.back_url != "") {
							response.data.data.back_url =
								response.data.data.back_url + "?v=" + random;
						} else {
							response.data.data.back_url = "";
						}
						if (response.data.data.hand_url != "") {
							response.data.data.hand_url =
								response.data.data.hand_url + "?v=" + random;
						} else {
							response.data.data.hand_url = "";
						}

						that.choose = response.data.data;
						that.repphotolog = true;
					}
				});
			},
			//我们用这个智能识别身份证信息咯
			getIdCardMsgByAI() {
				axios.get("/api/plan-market/order/fetchidcard?outer_id=" + this.scsource_id)
					.then(res => {
						if (res.data.msg.code != 0) {
							this.$message.error(res.data.msg.info);
						} else {
							this.choose.id_card_name = res.data.data.id_card_name;
							this.choose.id_card_num = res.data.data.id_card_num;
							this.loading = true;
							// this.$message.success("修改成功");
							this.getlist();
						}
					});
			},
			//我们用这个改一下身份证信息咯
			changeIdCardMsg() {
				let params = {
					id: this.choose.id,
					id_card_name: this.choose.id_card_name,
					id_card_num: this.choose.id_card_num
				}
				axios.post("/api/plan-market/order/info/update", params)
					.then(response => {
						if (response.data.msg.code != 0) {
							this.$message.error(response.data.msg.info);
						} else {
							this.loading = true;
							// this.$message.success("修改成功");
							this.getlist();
						}
					});
			},
			//重传照片确定 临时  我们用
			reppicgo2: function() {
				var that = this;
				//调取更改状态
				axios.post("/api/plan-market/xinwang/upstream_photo_upload", {
						id: this.choose.id
					})
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
						} else {
							that.repphotolog = false;
							that.loading = true;
							that.$message({
								message: "订单已提交至待审核",
								type: "success"
							});
							that.getlist();
							that.seephotolog2 = false;
						}
					});
			},
			//重传照片确定
			reppicgo: function() {
				var that = this;
				//调取更改状态
				axios.post("/api/plan-market/order/status/update", {
						id: this.choose.id,
						status: 120
					})
					.then(response => {
						if (response.data.msg.code != 0) {
							that.$message.error(response.data.msg.info);
						} else {
							that.repphotolog = false;
							that.loading = true;
							that.$message({
								message: "订单已提交至初审",
								type: "success"
							});
							that.getlist();
							that.seephotolog2 = false;
						}
					});
			},
			//单个图片上传
			uploadok: function(file) {
				this.seephotoloading = true;
				var that = this;
				var formData = new FormData();
				formData.append("id_num", this.choose.id_card_num);
				formData.append("order_id", this.choose.id);
				formData.append("type", "plan");
				formData.append("pic[" + this.which + "]", file.raw);
				axios.post("/api/ROS/plan/photo/cut", formData).then(response => {
					if (response.data.msg.code != 0) {
						that.$message.error(response.data.msg.info);
					} else {
						//单张上传完之后 获取最新图片
						axios
							.get(
								"/api/plan-market/order/photos/url?id_card_num=" +
								this.choose.id_card_num +
								"&id=" +
								this.choose.id
							)
							.then(response => {
								if (response.data.msg.code != 0) {
									that.$message.error(response.data.msg.info);
								} else {
									var random = Math.random();
									if (response.data.data.face_url != "") {
										that.choose.face =
											response.data.data.face_url + "?v=" + random;
									} else {
										that.choose.face = "";
									}
									if (response.data.data.back_url != "") {
										that.choose.back =
											response.data.data.back_url + "?v=" + random;
									} else {
										that.choose.back = "";
									}
									if (response.data.data.hand_url != "") {
										that.choose.hand =
											response.data.data.hand_url + "?v=" + random;
									} else {
										that.choose.hand = "";
									}
									that.seephotoloading = false;
								}
							});
					}
				});
			},
			//点击上传某张
			fixchoose: function(fbh) {
				this.which = fbh;
			},
			//等待照片上传订单
			wait: function() {
				this.deliver_fail = 0;
				this.page = 1;
				this.waitpic = true;
				this.act = 4;
				this.form.status = "150";
				this.xinwang = ""
				this.loading = true;
        this.never_deliver = ''
				this.getlist();


			},
			//全部
			searchall: function() {
				this.deliver_fail = 0;
				this.form.status = "";
				this.act = 1;
				this.waitpic = true;
				this.page = 1;
				this.xinwang = ""
				this.loading = true;
        this.never_deliver = ''
				this.getlist();


			},
			//审核失败的订单
			shenfail: function() {
				this.deliver_fail = 0;
				this.page = 1;
				this.waitpic = true;
				this.act = 2;
				this.form.status = "-200";
				this.xinwang = ""
				this.loading = true;
        this.never_deliver = ''
				this.getlist();

			},
			//开卡失败的订单
			kaifail: function() {
				this.deliver_fail = 0;
				this.page = 1;
				this.waitpic = true;
				this.act = 3;
				this.form.status = "-460";
				this.xinwang = ""
				this.loading = true;
        this.never_deliver = ''
				this.getlist();

			},
			tuikuan: function() {
				this.deliver_fail = 0;
				this.page = 1;
				this.waitpic = true;
				this.form.status = "450";
				this.act = 6;
				this.xinwang = ""
				this.loading = true;
        this.never_deliver = ''
				this.getlist();
			},
			shuadanlanjie: function() {
				this.deliver_fail = 0;
				this.page = 1;
				this.waitpic = true;
				this.form.status = "110";
        this.never_deliver = ""
				this.act = 8;
				this.xinwang = ""
				this.loading = true;
				this.getlist();
			},
      santian:function(){
        this.deliver_fail = 0;
				this.page = 1;
				this.waitpic = true;
				this.form.status = "";
        this.never_deliver = 1
				this.act = 9;
				this.xinwang = ""
				this.loading = true;
				this.getlist();
      },
			linshi: function() {
				this.deliver_fail = 0;
				this.page = 1;
				this.waitpic = true;
				this.form.status = "470";
				this.act = 7;
				this.xinwang = 1
				this.loading = true;
        this.never_deliver = ''
				this.getlist();
			},
			profail: function() {
				this.deliver_fail = 1;
				this.page = 1;
				this.waitpic = true;
				this.act = 8;
				this.xinwang = ""
				this.form.status = "";
				this.loading = true;
        this.never_deliver = ''
				this.getlist();
			},
			//自动发货失败
			autofail: function() {
				this.deliver_fail = 1;
				this.page = 1;
				this.waitpic = true;
				this.act = 5;
				this.xinwang = ""
				this.form.status = "";
				this.loading = true;
        this.never_deliver = ''
				this.getlist();
			},
			//批量处理
			dispose: function() {
				const that = this
				var arr = "";
				for (var i in this.danxuans) {
					console.log(this.danxuans[i]);
					arr = arr + this.danxuans[i] + ",";
				}
				arr = arr.substring(0, arr.lastIndexOf(","));
				console.log(arr)
				var arrs = []
				arrs = arr.split(',')
				console.log(arrs)
				if (this.danxuans == "") {
					this.$message.error("请选择要处理的订单");
					return false
				}
				axios.post("/api/plan-market/order/auto/deliver", {
					order_ids: arrs
				}).then(response => {
					console.log(response)
					if (response.data.msg.code == 0) {
						console.log(response)
						that.$message({
							message: `处理成功${response.data.data}条`,
							type: "success"
						});
						that.loading = true;
						that.getlist();
					}
				})
			},
			again: function() {
				const that = this
				var arr = "";
				for (var i in this.danxuans) {
					console.log(this.danxuans[i]);
					arr = arr + this.danxuans[i] + ",";
				}
				arr = arr.substring(0, arr.lastIndexOf(","));
				console.log(arr)
				var arrs = []
				arrs = arr.split(',')
				console.log(arrs)
				axios.post("/api/plan-market/intercept/order/cancel", {
					orderId: arrs
				}).then(response => {
					console.log(response)
					if (response.data.msg.code == 0) {
						console.log(response)
						if (response.data.data == "success") {
							that.$message({
								message: "继续生产成功",
								type: "success"
							});
							that.tuikuan()
						}
					}
				})
			},
			//多条id
			search2: function(item) {



        if(this.duoxuanids != ''){
          this.duoxuanids2 = this.duoxuanids.split(/\n/)
          for (let i in this.duoxuanids2) {
          	this.duoxuanids2[i] = this.duoxuanids2[i].trim()
          }
        }else{
          this.duoxuanids2 = ''
        }

        // if(this.duoxuanids3 != ''){
        //   this.duoxuanids4 = this.duoxuanids3.split(/\n/)
        //   for (let i in this.duoxuanids4) {
        //   	this.duoxuanids4[i] = this.duoxuanids4[i].trim()
        //   }
        // }else{
        //   this.duoxuanids4 = ''
        // }


        if(this.duoxuanids9x != ''){
          this.duoxuanids9 = this.duoxuanids9x.split(/\n/)
          for (let i in this.duoxuanids9) {
          	this.duoxuanids9[i] = this.duoxuanids9[i].trim()
          }
        }else{
          this.duoxuanids9 = ''
        }

        if(this.duoxuanidsx2 != ''){
          this.duoxuanidsx = this.duoxuanidsx2.split(/\n/)
          for (let i in this.duoxuanidsx) {
          	this.duoxuanidsx[i] = this.duoxuanidsx[i].trim()
          }
        }else{
          this.duoxuanidsx = ''
        }

        if(this.duoschminput != ''){
          this.duoschminput2 = this.duoschminput.split(/\n/)
          for (let i in this.duoschminput2) {
          	this.duoschminput2[i] = this.duoschminput2[i].trim()
          }
        }else{
          this.duoschminput2 = ''
        }


        if(this.duosjdhinput != ''){
          this.duosjdhinput2 = this.duosjdhinput.split(/\n/)
          for (let i in this.duosjdhinput2) {
          	this.duosjdhinput2[i] = this.duosjdhinput2[i].trim()
          }
        }else{
          this.duosjdhinput2 = ''
        }



				this.page = 1;
				this.loading = true;
				this.getlist();
				this.duoxuanlog = false
        this.duoxuanlogx = false
        this.duoxuanlog9 = false
        this.duoschm = false
        this.duosjdh = false
        this.duoxuanlog3 = false
			},
   //    search3: function() {
   //    	this.duoxuanids4 = this.duoxuanids3.split(/\n/)
   //    	for (let i in this.duoxuanids4) {
   //    		this.duoxuanids4[i] = this.duoxuanids4[i].trim()
   //    	}
   //    	this.page = 1;
   //    	this.loading = true;
   //    	this.getlist();
   //    	this.duoxuanlog3 = false
   //    },

   //    search2x: function() {
   //    	this.duoxuanidsx = this.duoxuanidsx2.split(/\n/)
   //    	for (let i in this.duoxuanidsx) {
   //    		this.duoxuanidsx[i] = this.duoxuanidsx[i].trim()
   //    	}
   //    	this.page = 1;
   //    	this.loading = true;
   //    	this.getlist();
   //    	this.duoxuanlogx = false
   //    },
	  // searchduoschm: function() {
   //    	this.duoschminput2 = this.duoschminput.split(/\n/)
   //    	for (let i in this.duoschminput2) {
   //    		this.duoschminput2[i] = this.duoschminput2[i].trim()
   //    	}
   //    	this.page = 1;
   //    	this.loading = true;
   //    	this.getlist();
   //    	this.duoschm = false
   //    },
	  // searchduosjdh: function() {
   //    	this.duosjdhinput2 = this.duosjdhinput.split(/\n/)
   //    	for (let i in this.duosjdhinput2) {
   //    		this.duosjdhinput2[i] = this.duosjdhinput2[i].trim()
   //    	}
   //    	this.page = 1;
   //    	this.loading = true;
   //    	this.getlist();
   //    	this.duosjdh = false
   //    },

			//搜索
			search: function() {
				this.page = 1;

				this.loading = true;
				this.getlist();
			},
			//复制功能
			copy: function(t) {
        console.log(t)
        t = t.toString()
				var that = this;
				this.$copyText(t).then(res => {
					that.$message.success("复制成功");
				});
			},
			//复制功能
			copy2: function(t,t2) {
        console.log(t)
        t = t.toString()
        t2 = t2.toString()
		var t3 = t+'  '+t2
				var that = this;
				this.$copyText(t3).then(res => {
					that.$message.success("复制成功");
				});
			},
			//选择标旗id
			choosecolorid: function(id, source_id) {
				//查看是否是拆单的
				this.amountchai = source_id

				this.choose.id = id;
				this.flaglog = true;
				this.addflag = ''
				axios.get("/api/plan-market/order/memo?id=" + id).then(response => {
					this.flagarea = response.data.data.memo;
					this.flagradio = response.data.data.flag;
				});
			},
			//选择标旗确认
			flagloggo: function() {
				axios
					.post("/api/plan-market/order/flag", {
						color: this.flagradio,
						id: this.choose.id,
						memo: this.addflag
					})
					.then(response => {
						this.loading = true;
						this.flaglog = false;
						this.getlist();
					});
			},
			//选择标旗
			choosecolor: function(val) {
				axios
					.post("/api/plan-market/order/flag", {
						color: val,
						id: this.choose.id
					})
					.then(response => {
						this.getlist();
					});
			},
			//批量标旗
			moreflag: function() {
				this.loading = true;
				var arr = "";
				for (var i in this.danxuans) {
					console.log(this.danxuans[i]);
					arr = arr + this.danxuans[i] + ",";
				}
				arr = arr.substring(0, arr.lastIndexOf(","));

				axios
					.post("/api/gth/orders/handle", {
						flag: this.color,
						ids: arr
					})
					.then(response => {
						if (response.data.msg.code == 0) {
							this.$message({
								message: "批量标旗成功",
								type: "success"
							});
							this.getlist();
						} else {
							this.loading = false;
							this.$message.error(response.data.msg.info);
						}
					});
			},
			//批量放弃
			giveout: function() {
				if (this.danxuans == '') {
					this.$message({
						message: "请先选择要放弃的订单",
						type: "warning"
					});
					return false
				}
				this.$confirm("确定要批量放弃订单吗?", "提示", {
					confirmButtonText: "确定",
					cancelButtonText: "取消",
					type: "warning"
				}).then(() => {
					this.loading = true;
					var arr = "";
					for (var i in this.danxuans) {
						console.log(this.danxuans[i]);
						arr = arr + this.danxuans[i] + ",";
					}
					arr = arr.substring(0, arr.lastIndexOf(","));
					axios
						.post("/api/gth/orders/handle", {
							status: 0,
							ids: arr
						})
						.then(response => {
							if (response.data.msg.code == 0) {
								this.$message({
									message: "订单已放弃，真让人感觉遗憾...",
									type: "success"
								});
								this.getlist();
								this.danxuans = [];
								this.quanxuana = false;
							} else {
								this.loading = false;
								this.$message.error(response.data.msg.info);
							}
						});
				});
			},
			//单个放弃订单
			giveoutone: function(id,type) {
				if(type){
					var txt = '该订单为抖店自动退款订单，放弃后将同步给用户退款'
				}else{
					var txt = '确定要放弃此订单吗?'
				}
				this.$confirm(txt, "提示", {
					confirmButtonText: "确定",
					cancelButtonText: "取消",
					type: "warning"
				}).then(() => {
					this.loading = true;
					axios
						.post("/api/gth/orders/handle", {
							status: 0,
							ids: id
						})
						.then(response => {
							if (response.data.msg.code == 0) {
								this.$message({
									message: "订单已放弃，真让人感觉遗憾...",
									type: "success"
								});
								this.getlist();
							} else {
								this.$message.error(response.data.msg.info);
							}
						});
				});
			},
			//继续订单
			again1: function(id) {
				const that = this
				console.log(id)
				var ids = []
				ids.push(id)
				axios.post("/api/plan-market/intercept/order/cancel", {
					orderId: ids
				}).then(response => {
					console.log(response)
					if (response.data.msg.code == 0) {
						console.log(response)
						if (response.data.data == "success") {
							that.$message({
								message: "继续生产成功",
								type: "success"
							});
							that.tuikuan()
						}
					}
				})
			},
			//查找拆单兄弟
			searchbrother: function(real_source_id) {
				axios.get("/api/gth/orders/splited?real_source_id=" + real_source_id)
					.then(response => {
						if (response.data.msg.code == 0) {
							for (var i in response.data.data.data) {
                if (response.data.data.data[i].flag == -1) {
                	response.data.data.data[i].flag = "#fff";
                }
								if (response.data.data.data[i].flag == 0) {
									response.data.data.data[i].flag = "#e4dfd7";
								}
								if (response.data.data.data[i].flag == 1) {
									response.data.data.data[i].flag = "#ee3f4d";
								}
								if (response.data.data.data[i].flag == 2) {
									response.data.data.data[i].flag = "#ebb10d";
								}
								if (response.data.data.data[i].flag == 3) {
									response.data.data.data[i].flag = "#229453";
								}
								if (response.data.data.data[i].flag == 4) {
									response.data.data.data[i].flag = "#2775b6";
								}
								if (response.data.data.data[i].flag == 5) {
									response.data.data.data[i].flag = "#8076a3";
								}
							}

							this.list = response.data.data.data;
							this.loading = false;
							this.total = response.data.data.total;

							//全选使用
							this.ids();
						} else {
							this.$message.error(response.data.msg.info);
						}
					});
			},
			//获取列表
			getlist: function() {
				this.danxuans = [];
				this.quanxuana = false;

				// this.form.source = this.form.source.trim();
				this.form.source_id = this.form.source_id.trim();
				this.form.id_card_num = this.form.id_card_num.trim();
				this.form.good_sku = this.form.good_sku.trim();
				this.form.deliver_fail = this.form.deliver_fail.trim();
				this.form.order_id = this.form.order_id.trim();
				this.form.iccid = this.form.iccid.trim();
				this.form.mobile_produced = this.form.mobile_produced.trim();
				this.form.tracking_number = this.form.tracking_number.trim();
				this.form.address_mobile = this.form.address_mobile.trim();

        let ids = ""
        let source_ids = ""
        if(this.duoxuanids2 && this.duoxuanids2[0].length == 9){
          ids = this.duoxuanids2
        }else{
          source_ids = this.duoxuanids2
        }
        // if(this.duoxuanids2 && this.duoxuanids2[0].length == 19){
        //   source_ids = this.duoxuanids2
        // }


				if (this.act == 1 || this.act == 8) {
					axios.get(
							"/api/gth/orders?type=1&deliver_fail=" +
							this.deliver_fail +
							"&end=" +
							this.form.end +
							"&pages_ids=" +
							this.form.pages_ids +
							"&start=" +
							this.form.start +
							"&order_at_end=" +
							this.form.order_at_end +
							"&order_at_start=" +
							this.form.order_at_start +
							"&status_at_end=" +
							this.form.status_at_end +
							"&status_at_start=" +
							this.form.status_at_start +
              "&activated_start=" +
              this.form.activated_start +
              "&activated_end=" +
              this.form.activated_end +
							"&good_sku=" +
							encodeURIComponent(this.form.good_sku) +
							"&product_id=" +
							this.form.product_id +
							"&plan_mobile_produced=" +
							this.form.mobile_produced +
							"&orderby=" +
							this.orderby +
							"&page=" +
							this.page +
							"&page_size=" +
							this.page_size +
							"&source=" +
							this.form.source.toString() +
							"&source_id=" +
							this.form.source_id +
							"&ids=" +
							ids +
              "&id_card_nums=" +
              this.duoxuanidsx +
			  "&plan_mobile_produceds=" +
              this.duoschminput2 +
			  "&address_mobiles=" +
              this.duosjdhinput2 +
              "&source_type=" +
               this.form.source_type.toString() +
							"&order_id=" +
							this.form.order_id +
              "&province=" +
              this.form.province +
              "&city=" +
              this.form.city +
							"&iccid=" +
							this.form.iccid +
              "&supplier=" +
              this.form.supplier +
							"&id_card_num=" +
							this.form.id_card_num +
							"&tracking_number=" +
							this.form.tracking_number +
							"&amount=" +
							this.form.amount +
							"&address_mobile=" +
							this.form.address_mobile +
							"&is_called=" +
							this.form.is_called +
							"&refund_status=" +
							this.form.refund_status +
							"&color=" +
							this.form.flag +
							"&status=" +
							this.form.status +
              "&statuses=" +
              this.form.statuses +
							"&active_status=" +
							this.form.active_status +
              "&sub_source=" +
              this.form.sub_source +
              "&source_ids=" +
              source_ids+
              "&is_auto_order_transfer=" +
              this.form.is_auto_order_transfer +
              "&is_changed=" +
              this.form.is_changed +

              "&sources=" +
              this.form.sources +
              "&nickname=" +
              this.form.nickname +
              "&order_transfer_and_change=" +
              this.form.order_transfer_and_change +
              "&never_deliver=" +
              this.never_deliver
						)

						.then(response => {
							if (response.data.msg.code == 0) {

								for (var i in response.data.data.data) {
                  if (response.data.data.data[i].flag == -1) {
                  	response.data.data.data[i].flag = "#fff";
                  }
									if (response.data.data.data[i].flag == 0) {
										response.data.data.data[i].flag = "#e4dfd7";
									}
									if (response.data.data.data[i].flag == 1) {
										response.data.data.data[i].flag = "#ee3f4d";
									}
									if (response.data.data.data[i].flag == 2) {
										response.data.data.data[i].flag = "#ebb10d";
									}
									if (response.data.data.data[i].flag == 3) {
										response.data.data.data[i].flag = "#229453";
									}
									if (response.data.data.data[i].flag == 4) {
										response.data.data.data[i].flag = "#2775b6";
									}
									if (response.data.data.data[i].flag == 5) {
										response.data.data.data[i].flag = "#8076a3";
									}
								}

								this.list = response.data.data.data;
                this.list.forEach((item,index)=>{

                  if(item.source.includes('douyin')){
                    item.data = {
                      token: item.mc_token,
                      orderId: item.source_id,
                    }
                  }
                })

								for (var i = 0; i < this.list.length; i++) {
									if (this.list[i].refund_status == '退款中') {
										this.list[i].activeColor = '#FFA200'
									} else if (this.list[i].refund_status == '退款成功') {
										this.list[i].activeColor = '#DD2727'
									} else {
										this.list[i].activeColor = ''
									}
								}

								this.total = response.data.data.total;

								//全选使用
								this.ids();
							} else {
								this.$message.error(response.data.msg.info);
							}
							this.loading = false;
						});
				} else {
					if (this.act == 6) {
						axios.get("/api/gth/orders/trouble?type=1&is_incercept=1&deliver_fail=" +
							this.deliver_fail +
                            "&pages_ids=" +
							this.form.pages_ids +
							"&end=" +
							this.form.end +
							"&start=" +
							this.form.start +
							"&order_at_end=" +
							this.form.order_at_end +
							"&order_at_start=" +
							this.form.order_at_start +
							"&status_at_end=" +
							this.form.status_at_end +
							"&status_at_start=" +
							this.form.status_at_start +
              "&activated_start=" +
              this.form.activated_start +
              "&activated_end=" +
              this.form.activated_end +
							"&good_sku=" +
							encodeURIComponent(this.form.good_sku) +
							"&product_id=" +
							this.form.product_id +
							"&mobile_produced=" +
							this.form.mobile_produced +
							"&orderby=" +
							this.orderby +
							"&page=" +
							this.page +
							"&page_size=" +
							this.page_size +
							"&source=" +
							this.form.source.toString() +
							"&source_id=" +
							this.form.source_id +
							"&order_id=" +
							this.form.order_id +
							"&id_card_num=" +
							this.form.id_card_num +
							"&tracking_number=" +
							this.form.tracking_number +
							"&iccid=" +
							this.form.iccid +
              "&supplier=" +
              this.form.supplier +
							"&amount=" +
							this.form.amount +
							"&address_mobile=" +
							this.form.address_mobile +
							"&is_called=" +
							this.form.is_called +
							"&refund_status=" +
							this.form.refund_status +
							"&color=" +
							this.form.flag +
              "&source_ids=" +
              source_ids +
							"&active_status=" +
							this.form.active_status+
              "&is_auto_order_transfer=" +
							this.form.is_auto_order_transfer +
              "&is_changed=" +
              this.form.is_changed +
              "&sources=" +
              this.form.sources +
              "&province=" +
              this.form.province +
              "&city=" +
              this.form.city +
              "&nickname=" +
              this.form.nickname +
              "&order_transfer_and_change=" +
              this.form.order_transfer_and_change +
              "&never_deliver=" +
              this.never_deliver
              ).then(response => {
							console.log(response)
							if (response.data.msg.code == 0) {
								for (var i in response.data.data.data.data) {
                  if (response.data.data.data.data[i].flag == -1) {
                  	response.data.data.data.data[i].flag = "#fff";
                  }
									if (response.data.data.data.data[i].flag == 0) {
										response.data.data.data.data[i].flag = "#e4dfd7";
									}
									if (response.data.data.data.data[i].flag == 1) {
										response.data.data.data.data[i].flag = "#ee3f4d";
									}
									if (response.data.data.data.data[i].flag == 2) {
										response.data.data.data.data[i].flag = "#ebb10d";
									}
									if (response.data.data.data.data[i].flag == 3) {
										response.data.data.data.data[i].flag = "#229453";
									}
									if (response.data.data.data.data[i].flag == 4) {
										response.data.data.data.data[i].flag = "#2775b6";
									}
									if (response.data.data.data.data[i].flag == 5) {
										response.data.data.data.data[i].flag = "#8076a3";
									}
								}
								this.list = response.data.data.data.data;
                this.list.forEach((item,index)=>{
                  if(item.source.includes('douyin')){
                    item.data = {
                      token: item.mc_token,
                      orderId: item.source_id,
                    }
                  }
                })

								this.loading = false;
								this.total = response.data.data.data.total;

								//全选使用
								this.ids();
							} else {
								this.$message.error(response.data.msg.info);
							}
						})
					} else {
						axios.get("/api/gth/orders/trouble?type=1&deliver_fail=" +
								this.deliver_fail +
                                "&pages_ids=" +
							    this.form.pages_ids +
								"&end=" +
								this.form.end +
								"&start=" +
								this.form.start +
								"&order_at_end=" +
								this.form.order_at_end +
								"&order_at_start=" +
								this.form.order_at_start +
								"&status_at_end=" +
								this.form.status_at_end +
								"&status_at_start=" +
								this.form.status_at_start +
                "&activated_start=" +
                this.form.activated_start +
                "&activated_end=" +
                this.form.activated_end +
								"&good_sku=" +
								encodeURIComponent(this.form.good_sku) +
								"&product_id=" +
								this.form.product_id +
								"&mobile_produced=" +
								this.form.mobile_produced +
								"&orderby=" +
								this.orderby +
								"&iccid=" +
								this.form.iccid +
                "&supplier=" +
                this.form.supplier +
								"&page=" +
								this.page +
								"&page_size=" +
								this.page_size +
								"&source=" +
								this.form.source.toString() +
								"&source_id=" +
								this.form.source_id +
								"&order_id=" +
								this.form.order_id +
								"&id_card_num=" +
								this.form.id_card_num +
								"&tracking_number=" +
								this.form.tracking_number +
								"&amount=" +
								this.form.amount +
								"&address_mobile=" +
								this.form.address_mobile +
								"&is_called=" +
								this.form.is_called +
								"&refund_status=" +
								this.form.refund_status +
								"&color=" +
								this.form.flag +
								"&status=" +
								this.form.status +
                "&statuses=" +
                this.form.statuses +
                "&source_ids=" +
                source_ids +
								"&active_status=" +
								this.form.active_status +
                "&source_type=" +
                 this.form.source_type.toString() +
								"&xinwang_photo=" + this.xinwang+
                "&province=" + this.form.province+
                "&city=" + this.form.city+
								"&is_auto_order_transfer=" + this.form.is_auto_order_transfer +
                "&is_changed=" + this.form.is_changed +
                "&sources=" + this.form.sources +
                "&nickname=" +
                this.form.nickname +
                "&order_transfer_and_change=" +
                this.form.order_transfer_and_change +
                "&never_deliver=" +
                this.never_deliver
							)

							.then(response => {
								if (response.data.msg.code == 0) {
									for (var i in response.data.data.data.data) {
                    if (response.data.data.data.data[i].flag == -1) {
                    	response.data.data.data.data[i].flag = "#fff";
                    }
										if (response.data.data.data.data[i].flag == 0) {
											response.data.data.data.data[i].flag = "#e4dfd7";
										}
										if (response.data.data.data.data[i].flag == 1) {
											response.data.data.data.data[i].flag = "#ee3f4d";
										}
										if (response.data.data.data.data[i].flag == 2) {
											response.data.data.data.data[i].flag = "#ebb10d";
										}
										if (response.data.data.data.data[i].flag == 3) {
											response.data.data.data.data[i].flag = "#229453";
										}
										if (response.data.data.data.data[i].flag == 4) {
											response.data.data.data.data[i].flag = "#2775b6";
										}
										if (response.data.data.data.data[i].flag == 5) {
											response.data.data.data.data[i].flag = "#8076a3";
										}
									}

									this.list = response.data.data.data.data;

                  this.list.forEach((item,index)=>{
                    if(item.source.includes('douyin')){
                      item.data = {
                        token: item.mc_token,
                        orderId: item.source_id,
                      }
                    }
                  })
									this.loading = false;
									this.total = response.data.data.data.total;

									//全选使用
									this.ids();
								} else {
									this.$message.error(response.data.msg.info);
								}
							});
					}

				}

				axios.get("/api/gth/orders/trouble/nums?end=" +
						this.form.end +
						"&start=" +
						this.form.start +
						"&order_at_end=" +
						this.form.order_at_end +
						"&order_at_start=" +
						this.form.order_at_start +
						"&status_at_end=" +
						this.form.status_at_end +
						"&status_at_start=" +
						this.form.status_at_start +
            "&activated_start=" +
            this.form.activated_start +
            "&activated_end=" +
            this.form.activated_end +
						"&good_sku=" +
						encodeURIComponent(this.form.good_sku) +
						"&product_id=" +
						this.form.product_id +
						"&mobile_produced=" +
						this.form.mobile_produced +
						"&orderby=" +
						this.orderby +
						"&page=" +
						this.page +
						"&page_size=" +
						this.page_size +
						"&source=" +
						this.form.source.toString() +
						"&source_id=" +
						this.form.source_id +
						"&order_id=" +
						this.form.order_id +
						"&id_card_num=" +
						this.form.id_card_num +
						"&tracking_number=" +
						this.form.tracking_number +
						"&amount=" +
						this.form.amount +
						"&address_mobile=" +
						this.form.address_mobile +
						"&is_called=" +
						this.form.is_called +
						"&refund_status=" +
						this.form.refund_status +
						"&color=" +
						this.form.flag +
            "&source_ids=" +
            source_ids +
						"&active_status=" +
						this.form.active_status+
						"&is_auto_order_transfer=" +
						this.form.is_auto_order_transfer +
            "&is_changed=" +
            this.form.is_changed +
            "&sources=" + this.form.sources +
            "&province=" + this.form.province+
            "&city=" + this.form.city+
            "&nickname=" +
            this.form.nickname +
            "&order_transfer_and_change=" +
            this.form.order_transfer_and_change +
            "&source_type=" +
             this.form.source_type.toString() +
            "&never_deliver=" +
            this.never_deliver
					)
					.then(response => {
						if (response.data.msg.code == 0) {
							this.kainum = response.data.data.open_fails;
							this.shennum = response.data.data.photo_fails;
							this.wait_photos = response.data.data.wait_photos;
							this.autofailnum = response.data.data.deliver_fails;
							this.tuinum = response.data.data.intercept_num
							this.shuadannum = response.data.data.shuadannum

							this.xinwang_photo = response.data.data.xinwang_photo
							//全选使用
							this.ids();
						} else {
							this.$message.error(response.data.msg.info);
						}
					});
			},

			//翻页
			fanye: function(val) {
				this.page = val;
				this.loading = true;
				this.getlist();
			},

			//全选的ids集合
			ids: function() {
				var checkids = [];
				for (var i in this.list) {
					checkids.push(this.list[i].id);
				}
				this.quanxuans = checkids;
			},
			//点击全选
			quanxuan: function() {
				if (
					this.danxuans.length != this.quanxuans.length || this.danxuans.length == 0
				) {
					this.danxuans = this.quanxuans;
					this.quanxuana = true;
				} else {
					this.danxuans = [];
					this.quanxuana = false;
				}
			},
			goLan: function() {
				this.$router.push({
					path: "/order_question/lanjie"
				})
			},
			//点击单选
			danxuan: function() {
				// this.choosearea.push(this.checkedarea)
				if (this.danxuans.length == this.quanxuans.length) {
					this.quanxuana = true;
				} else {
					this.quanxuana = false;
				}
			},
			//分页size改变
			handleSizeChange(e){
				console.log(e)
				this.page_size = e
				//获取列表
				this.getlist()

			},
			//调到商品详情
			todetail(id){
				console.log('000')
				window.open(window.location.origin +  window.location.pathname+"#/productionDelivery/shopdetail?id="+id)
			},
			//投诉子集传来关闭
			creategd(){
				this.isshowwindow = false
				this.getlist();
				console.log('投诉子集传来关闭')
			},
			creategdhide(){
				this.isshowwindow = false
			},
			//投诉进详情
			todetail_s(id,status){
				// if(status==2){
					//处理完成
					this.$router.push({
						path: '/tousugongdan/checkts',
						query:{id:id,tab:5}
					})
				// }else{
				// 	//处理
				// 	axios.post('/api/plan-market/admin/complaint/job/update/handler',{
				// 		id:id,
				// 		status:1
				// 	})
				// 	.then(response => {
				// 		if (response.data.msg.code == 0) {
				// 			this.$router.push({
				// 				path: '/tousugongdan/checkts',
				// 				query:{id:id,tab:5}
				// 			})
				// 		} else {
				// 			this.$message.error(response.data.msg.info);
				// 		}
				// 	})
				// }

			},
			//转
			checkzhuan(id){

				axios.post('/api/plan-market/order/transfer/list', {
					id: id

					}).then(response => {
						console.log(response)
						if(response.data.msg.code==0){
							this.isshowzhuan = true
							console.log('转列表')
							console.log(response.data.data)
							this.zhuanData = response.data.data
						}else{
							this.$message.error(response.data.msg.info);
						}

					})
			},
			//转
			waihu(id){

				// this.$router.push({path:'/callsystem/newcalls/waihuzhongxin/calldig',query:{orderid:id}})

				window.open(window.location.origin +  window.location.pathname+"#/callsystem/newcalls/waihuzhongxin/calldig?orderid="+id)
			},
			checkzeng(orderid){
				this.zengid = orderid
				this.isshowzeng = true
			}
		}
	};
</script>

<style lang="scss" scoped>
  @import "@/assets/zuixin.scss";
  // .el-picker-panel__footer .el-button--text  {
  //   display: none;
  // }
  /deep/ .el-textarea__inner{ background: rgb(232, 232, 232);}
	.index {

    /deep/ #drop .el-button--primary {
    	background-color: #2974FF;
    	border: 1px #2974FF solid;
    }
		/deep/ .el-checkbox{ width: 350px;}
		/*滚动条样式*/
		.flagareaContent {
			width: 397px;
			min-height: 40px;
			max-height: 120px;
			padding: 5px 15px;
			border: 1px solid #DCDFE6;
			color: #C0C4CC;
			background-color: #F5F7FA;
			border-radius: 4px;
			overflow: auto;
		}
    .shuruk input{width: 110px !important;}

		.flagareaContent::-webkit-scrollbar {
			/*滚动条整体样式*/
			width: 8px;
			/*高宽分别对应横竖滚动条的尺寸*/
			height: 4px;
		}

		.flagareaContent::-webkit-scrollbar-thumb {
			/*滚动条里面小方块*/
			border-radius: 5px;
			-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
			background: #D8D8D8;
		}

		.flagareaContent::-webkit-scrollbar-track {
			/*滚动条里面轨道*/
			-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
			border-radius: 0;
			background: #fff;
		}

		.bao .el-button--primary {
			font-size: 14px;
			display: inline-block;
			line-height: 1;
			white-space: nowrap;
			cursor: pointer;
			background-color: #fff !important;
			border: 1px solid #dcdfe6 !important;
			color: #606266 !important;
			-webkit-appearance: none;
			text-align: center;
			-webkit-box-sizing: border-box;
			box-sizing: border-box;
			outline: 0;
			margin: 0;
			margin-left: 10px !important;
			-webkit-transition: 0.1s;
			transition: 0.1s;
			font-weight: 500;
			-moz-user-select: none;

			font-size: 14px;
			border-radius: 4px;

			span {
				font-size: 14px;
			}
		}

		/deep/ .bao2 .el-button--primary {
			font-size: 14px;
			display: inline-block;
			line-height: 1;
			white-space: nowrap;
			cursor: pointer;
			background-color: #F56C6C !important;
			border: 1px solid #F56C6C !important;
			color: #FFFFFF !important;
			-webkit-appearance: none;
			text-align: center;
			-webkit-box-sizing: border-box;
			box-sizing: border-box;
			outline: 0;
			margin: 0;
			margin-left: 10px !important;
			-webkit-transition: 0.1s;
			transition: 0.1s;
			font-weight: 500;
			-moz-user-select: none;

			margin-right: 10px;
			font-size: 14px;
			border-radius: 4px;

			span {
				font-size: 14px;
			}
		}

		.colorli {
			display: flex;
			width: 100px;
		}

		.colorli div {
			flex: 1;
			justify-content: space-between;
			line-height: 34px;
			text-align: center;
		}

		.tooltip {
			max-width: 300px;
			line-height: 30px;
		}



		.dz {
			/deep/ .el-cascader {
				width: 100%;
			}
		}

		.emailridio {
			margin-bottom: 20px;

			/deep/ .el-radio-button__orig-radio:checked+.el-radio-button__inner {
				color: #FFF;
				background-color: #F56C6C;
				border-color: #F56C6C;
				box-shadow: -1px 0 0 0 #F56C6C;
			}

			/deep/ .el-radio-button__inner:hover {
				color: #666
			}
		}

		.emailform {
			.emailtj {
				background: #eaeaea;
				padding: 20px 0;
			}

			.emailps {
				background: #BFEEFF;
				padding: 10px;
				line-height: 25px;
				font-size: 14px;
				margin-top: 20px;
			}

			/deep/ .el-form-item {
				margin-bottom: 0;
			}
		}

		.emailupload {
			/deep/ .el-button--primary {
				background: #F56C6C;
				border: 1px solid #F56C6C;

			}
		}

		.emaildown {
			margin-left: 30px;
		}

		.red {
			color: #F56C6C;
			font-weight: bold;
			margin: 0 5px;
		}

		.emailfoot {
			display: flex;
			justify-content: center;
			align-items: center;
			padding: 30px 0;

			.emails span {
				margin-left: 20px;
			}

		}

		.list {
			text-align: center;
			font-size: 14px;
			color: #666;

			.flex {}

			.listth {
				background: #eaeaea;
				padding: 10px 20px;
				flex: 1;
			}

			.listtd {
				flex: 1;
				padding: 10px 20px;
				border-bottom: 1px #eaeaea solid;
			}

			.time {
				flex-basis: 100px;
			}
		}

		.rechargego {
			cursor: pointer;
			color: #197cff;
		}

		.emailchongzhi {
			color: #197cff;
			cursor: pointer;
		}


				.title {
					border-bottom: 1px #eaeaea solid;
					line-height: 45px;
					padding-left: 30px;
					font-size: 16px;
					background: #f9f9f9;
					color: #727272;
				}

				.o_ul {
					background: #f9f9f9;
					display: flex;

					.o_li {
						flex-basis: 160px;
						line-height: 45px;
						display: block;
						color: #727272;
						border-top: 3px #f9f9f9 solid;
						font-size: 14px;
						text-align: center;
					}

					.act {
						border-top: 3px #dd2727 solid;
						background: #ffffff;
					}
				}


			.con {
				padding: 20px 0;

				.seebtn {
					cursor: pointer;
					text-align: center;
					color: #197cff;
				}

				.el-dropdown {
					color: #197cff;
					font-size: 14px;
				}

				.w180 {
					.flex {
						/deep/ .el-form-item {
							margin-bottom: 20px;
						}

						/deep/ .el-form-item__label {
							font-size: 14px;

						}

						/deep/ .el-input {

							width: 220px;
						}

						/deep/ .el-form-item__content {

						}

						/deep/ .el-input__inner {


						}

						/deep/ .el-input__icon {

						}
					}
				}

				.seedetail {
					color: #197cff;
					cursor: pointer;
				}

				.powertable {
					margin: 0 10px;
				}

				.select {
					/deep/ .el-select {
						margin: 0 10px;

						width: 200px;
					}

					/deep/ .el-input__inner {

            width:220px
					}

					/deep/ .el-input__icon {

					}
				}

				.btmm {
					.el-button {

					}
				}

				.powerlist {
					display: flex;
					line-height: 45px;
					text-align: center;
				}

				.powerth {
					background: #e5e5e5;
					color: #666666;
					font-size: 14px;
					border-right: 1px #eaeaea solid;
				}

				.powerth:nth-child(1) {
					flex-basis: 50px;
				}

				.powertd:nth-child(1) {
					flex-basis: 50px;
				}

				.powerth:nth-child(2) {
					flex-basis: 0px;
					border: 0;
				}

				.powertd:nth-child(2) {
					flex-basis: 0px;
					border: 0;
				}

				.powerth:nth-child(3) {
					flex-basis: 200px;
				}

				.powertd:nth-child(3) {
					flex-basis: 200px;
				}

				.powerth:nth-child(4) {
					flex-basis: 150px;
				}

				.powertd:nth-child(4) {
					flex-basis: 150px;
				}

				.powerth:nth-child(5) {
					flex-basis: 150px;
				}

				.powertd:nth-child(5) {
					flex-basis: 150px;
				}

				.powerth:nth-child(6) {
					flex-basis: 100px;
				}

				.powertd:nth-child(6) {
					flex-basis: 100px;
				}

				.powerth:nth-child(7) {
					flex-basis: 150px;
				}

				.powertd:nth-child(7) {
					flex-basis: 150px;
				}

				.powerth:nth-child(8) {
					flex-basis: 70px;
				}

				.powertd:nth-child(8) {
					flex-basis: 70px;
				}

				.powerth:nth-child(9) {
					flex-basis: 140px;
				}

				.powertd:nth-child(9) {
					flex-basis: 140px;
				}

				.powerth:nth-child(10) {
					flex-basis: 58px;
				}

				.powertd:nth-child(10) {
					flex-basis: 58px;
				}

				.powerth:nth-child(11) {
					flex-basis: 100px;
				}

				.powertd:nth-child(11) {
					flex-basis: 100px;
				}

				.th1 {
					flex-basis: 80px;
					max-width: 80px;
				}

				.powertd {
					background: #ffffff;
					overflow: hidden;
					max-height: 66px;
					color: #888888;
					line-height: 33px;
					font-size: 14px;
					border-bottom: 1px #eaeaea solid;
					border-right: 1px #eaeaea solid;
					display: flex;
					align-items: center;
					flex-wrap: wrap;
					justify-content: center;
				}

				.fenye {
					text-align: right;
					margin: 20px 0;
				}
			}


		.newflex {
			display: flex;
			justify-content: space-between;
		}

		.newsearch {
			display: flex;
			text-align: center;
			margin-bottom: 10px;
			font-size: 14px;
			// border-bottom: 3px #dcdcdc solid;

			.shuxian {
				img {
					height: 20px;
					position: relative;
					top: 14px
				}
			}

			.act {
				color: #f56c6c;
				border-bottom: 3px #f56c6c solid !important;
			}

			.news1 {
				padding: 10px 35px;
				cursor: pointer;
				position: relative;
				top: 3px;
			}

			.news2 {
				padding: 10px 0;

				cursor: pointer;
			}

			.news3 {
				padding: 10px 0;

				cursor: pointer;
			}

			.news4 {
				padding: 10px 0;
				cursor: pointer;
			}
		}

		.newlistbor {
			margin-bottom: -1px;
		}

		.newlist {
			.newleft {
				display: flex;
        width: 100%;
			}

			.newthli {
        text-align: center;
				font-size: 14px;
				line-height: 40px;
				height: 40px;
				background: #f9f9f9;
				color: #646464;
			}

			.newthli1 {
				font-size: 14px;
				line-height: 40px;
				height: 40px;
				color: #646464;
			}
      .newthli{flex:1; }



			.newright {
				flex-basis: 116px;
				text-align: center;
			}

			.newh {
				display: flex;
				justify-content: space-between;
				background: #f3faff;
				line-height: 48px;
				height: 48px;
				color: #646464;
				font-size: 13px;
				border: 1px #eaeaea solid;
				border-bottom: 0;
				position: relative;
				.newhli {
					margin-right: 10px;

					/deep/ .el-icon-document-copy {
						margin-left: 0 !important;
					}

					img {
						width: 20px;
						position: relative;
						top: 2px;
						cursor: pointer;
					}
				}

				.newhli:nth-child(1) {
					flex-basis: 50px;
					text-align: center;
				}
			}

			.newb {
				display: flex;
				font-size: 14px;
				color: #646464;
				line-height: 25px;
				margin-bottom: 10px;
				border: 1px #eaeaea solid;
				border-top: 0;

				.newt1 {
					flex:1;
          border-right: 1px #eaeaea solid;
				}

				.newt2 {
					flex:1;
border-right: 1px #eaeaea solid;
				}

				.seephoto {
					color: #197cff;
					cursor: pointer;
				}

				.newt3 {
					flex:1; overflow: hidden;
border-right: 1px #eaeaea solid;
				}

				.newt4 {
					flex:1;
border-right: 1px #eaeaea solid;

					.newcar {
						max-height: 80px;
						overflow: hidden;
					}

					.newcar2 {
						color: #197cff;
						cursor: pointer;
					}
				}

				.newt5 {
					flex:1;
border-right: 1px #eaeaea solid;
				}

				.newt6 {
					width:120px;
          span{ margin-right: 10px;}

					.contact {
						margin-top: 5px;
						background: #f56c6c;
						color: #ffffff;
						line-height: 25px;
						text-align: center;
						border-radius: 3px;
						cursor: pointer;
					}

					.contact2 {
						margin-top: 5px;
						color: #666;
						line-height: 25px;
						text-align: center;
						border-radius: 3px;
						cursor: pointer;
					}
				}
			}
		}

		.flex {
			display: flex;
			padding-right: 20px;
		}

		.idCarda {
			/deep/ .el-form-item {
				margin-bottom: 0;
			}
		}

		.logflex {
			display: flex;
			justify-content: space-around;
			flex-wrap: wrap;

			/deep/ .el-button--primary {

			}
		}

		.logflex div {
			width: 377px;
			text-align: center;
		}

		.logflex .proimg {
			display: flex;
			justify-content: center;
			align-items: center;
			height: 265px;
			background: #eaeaea;
		}

		.logflex .proimg img {
			max-width: 100%;
			max-height: 100%;
		}

		.protitle {
			color: #197cff;
			cursor: pointer;
			margin-top: 10px;
		}

		.propipei {
			padding-left: 90px;
			font-size: 14px;
			margin-bottom: 10px;
		}

		.propipei span {
			margin: 0 10px;
			color: #ff5053;
		}
	}

	.checkBtn {
		display: flex;
		align-items: center;
	}

	.checkAll {
		display: inline-flex;
		align-items: center;
		font-size: 14px;
	}

	.pageBox {
		margin-left: 730px;
		position: absolute;
		right: 0;

		.el-pagination {
			display: flex;

			/deep/ .btn-prev {
				margin-right: 7px;
			}

			/deep/ .btn-next,
			.btn-prev {
				padding: 0px 15px;
				height: 30px;
				border: 1px solid rgba(183, 183, 183, 1);
				opacity: 1;
				border-radius: 3px;

				span {
					font-size: 14px;
				}
			}
		}
	}

	.order_question .newlist .new-left {
		flex-basis: 1146px;
		position: relative;
	}

	.copyBtn {
		cursor: pointer;
		color: #409EFF;
		border: 1px #409EFF solid;
		padding: 5px;
		width: 160px;
		text-align: center;
		font-size: 14px;
		border-radius: 3px;
		margin-bottom: 20px;
	}
	.t_su{
		background-color: #AF0000;
		color: white;
		width: 26px;
		height: 26px;
		text-align: center;
		line-height: 26px;
		border-radius: 3px;
		cursor: pointer;
    margin-left: 20px;
		// position: absolute;
		// top: 12px;
		// right: 15px;
	}
</style>
<style scoped>
.t_zhuan{
	background-color: #FF8D00;
	width: 26px;
	height: 26px;
	text-align: center;
	line-height: 24px;
	border-radius: 3px;
	font-size: 14px;
	color: white;
	margin-left: 20px;
	cursor: pointer;
/* 	position: absolute;
	top: 12px;
	right: 45px; */
}
.t_zeng{
	background-color: #ffc000;
	width: 26px;
	height: 26px;
	text-align: center;
	line-height: 24px;
	border-radius: 3px;
	font-size: 14px;
	color: white;
	margin-left: 20px;
	cursor: pointer;
/* 	position: absolute;
	top: 12px;
	right: 15px; */
}

</style>
